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

オープン
#207 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@RaphaelFakhri がすでに取り組んでいます。

2026年10月25日 から。

  • #208 @RaphaelFakhri による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
postgresql, sql
領域
backend, databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
PLpgSQL
スター
284
フォーク
110
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

supabase/splinter のほかの issue

supabase/splinter の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。