0030_autovacuum_disabled misses tables where autovacuum_enabled is set to off, 0 or no
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
调研方向
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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
supabase/splinter 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 69/100
supabase/splinter#206 · 1 个 reaction ·
维护者通常 1 天内回复
-
0002_auth_users_exposed false positive: pg_depend join lacks a refclassid filter (cross-catalog OID collision)可能已有人在做 @tushardev-365 于 95 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 40/100
supabase/splinter#210 · 1 个 reaction ·
维护者通常 1 天内回复
-
Proposal: lint for RLS policies whose role lacks the table privilege (policy_without_privilege)可能已有人在做 @larik15 于 27 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 1/100
维护者通常 1 天内回复
-
0028/0029 silently report zero findings for projects using a custom PostgREST request role可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 68/100
维护者通常 1 天内回复
查看 supabase/splinter 的全部 Issue
相似的 Issue
-
date_time, url_encode, html_escape, to_unix_time, contains_all and contains_any panic when called without arguments可能已有人在做 @antcybersec 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
projectdiscovery/dsl#372 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
yegor256/intercepted#128 ·
-
Bug
难度 2/5 1-3 小时 新手友好度 65/100
keiyoushi/extensions-source#20650 ·
维护者通常 1 天内回复
-
feat(plan): support convertorLabels and convertorAffinity in Plan resource可能已有人在做 @AmenB 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
RedHatQE/openshift-python-wrapper#2849 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
libnativeapi/nativeapi#21 ·