0030_autovacuum_disabled misses tables where autovacuum_enabled is set to off, 0 or no
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Find the definition of lint 0030_autovacuum_disabled and inspect how it checks pg_class.reloptions. The issue provides SQL to reproduce the missed cases; run it and query the lint view to confirm the behavior. Done means the lint reports tables whose autovacuum_enabled value is off, 0, or no as well as false.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Lint 0030_autovacuum_disabled matches the single string 'autovacuum_enabled=false' = any(cls.reloptions). Postgres stores a boolean storage parameter as written, so any other spelling of false is stored as-is and the lint reports nothing.
Steps to reproduce
create table public.a (id int) with (autovacuum_enabled = off);
create table public.b (id int) with (autovacuum_enabled = 0);
create table public.c (id int) with (autovacuum_enabled = 'no');
select relname, reloptions from pg_class where relname in ('a', 'b', 'c');
-- a | {autovacuum_enabled=off}
-- b | {autovacuum_enabled=0}
-- c | {autovacuum_enabled=no}
select * from lint."0030_autovacuum_disabled";
-- (0 rows)
Expected behavior
The lint reports all three tables, because autovacuum is disabled on each of them.
Actual behavior
The lint returns 0 rows. Only autovacuum_enabled = false (or unquoted FALSE) is detected.
Tested on supabase/postgres:15.14.1.169.
- Ngôn ngữ chính
- PLpgSQL
- Star
- 284
- Fork
- 110
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của supabase/splinter
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
supabase/splinter#206 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0002_auth_users_exposed false positive: pg_depend join lacks a refclassid filter (cross-catalog OID collision)Có thể đã có người làm @tushardev-365 đã nhận 96 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 40/100
supabase/splinter#210 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Proposal: lint for RLS policies whose role lacks the table privilege (policy_without_privilege)Có thể đã có người làm @larik15 đã nhận 28 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 1/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0028/0029 silently report zero findings for projects using a custom PostgREST request roleCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của supabase/splinter
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
virtualmin/virtualmin-gpl#1322 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
kind/bug needs-priority needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
konveyor/tackle2-hub#1166 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
UKGovernmentBEIS/inspect_ai#6268 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
bherbruck/solvecraft#11246 · 1 bình luận · 1 reaction ·