0030_autovacuum_disabled misses tables where autovacuum_enabled is set to off, 0 or no

Đang mở
#207 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@RaphaelFakhri đang làm issue này rồi.

Từ ngày 25/10/2026.

  • #208 của @RaphaelFakhri — đang mở

Đá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
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
postgresql, sql
Lĩnh vực
backend, databases

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của supabase/splinter

Tất cả issue của supabase/splinter

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.