feat: add additional per-table storage parameters #133
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 306 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.343
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #133"
general
weight: 0.35
pquerna
arreyder
Summary
Adds 6 PostgreSQL table-level storage parameters to
StorageParameters, all confirmed valid via PostgreSQL 17 docs (CREATE TABLE → Storage Parameters):parallel_workers— number of workers for parallel table scansautovacuum_multixact_freeze_min_age/max_age/table_age— completes the multixact freeze family alongside the existing freeze age paramslog_autovacuum_min_duration— log autovacuum runs exceeding this duration (ms)vacuum_index_cleanup— whether vacuum should process indexes (enum AUTO/ON/OFF)Full support in
CREATE TABLE(WITH clause),ALTER TABLE(SET), and code generation. Test cases cover all parameters in both new-table and existing-table paths.Removed:
default_statistics_targetAn earlier revision of this PR also added
default_statistics_targetas a table-level storage parameter. That was incorrect — per PG17 docs,default_statistics_targetis only valid as the server GUC or as a per-column override viaALTER TABLE … ALTER COLUMN … SET STATISTICS N. It is not in the table-levelWITH(...)allow-list. The previous PR shape would have generated SQL Postgres rejects withunrecognized parameter "default_statistics_target".Field number 13 and the name
default_statistics_targetare nowreservedonStorageParametersso a future per-column field-option PR doesn't collide here.Usage
Test plan
go vet ./...passesgo build ./...passesgo test ./pgdb/v1/ -run TestStorageParams— all pass (TestStorageParams2with + TestStorageParams2alter)buf generate protocleanbuf generate --template buf.example.gen.yaml --path example/modelscleanFollow-up (out of scope)
Per-column
SET STATISTICSbelongs in FieldOptions on the proto field, not in StorageParameters on the message. Will be a separate PR —(pgdb.v1.options).statistics_target = Nannotation that emitsALTER TABLE … ALTER COLUMN … SET STATISTICS Nfor each annotated column. Tracked separately so this PR can land for the storage-parameter scope.🤖 Generated with Claude Code