pgdb: gate SearchField() and drop fts_data GIN index for no-full-text messages #152
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.52) × (1 − Review Confidence (0.65)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 324 lines diff across 11 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.47 · 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.346
Real PR Conversation Timeline
1 comments
"Review active on #152"
general
weight: 0.35
loganintech
tthayer
Consolidates the two follow-ups to #148 into one change. #148 stopped creating the
fts_dataBTREE_GIN index on messages with no direct full-text field; this finishes the job.Changes
SearchField()gate (was #149): the descriptor'sSearchField()returnsnilfor messages with no direct full-text field, so the generic FTS query builder treats them as not-searchable instead of emitting a predicate against an always-NULLfts_datacolumn.IsDropped: true. This is the only mechanism that removes indexes already present on provisioned tables —Migrations()reconciles only indexes named in the descriptor, so an omitted index is invisible to it and lingers forever. WithIsDropped:- fresh tables never create it (
IndexSchemaskipsIsDroppedentries), and- existing tables get
DROP INDEX ... CONCURRENTLY.Same pattern as the long-standing
pksk_splittombstone ingetCommonIndexes.Verification
go build ./...,go vet ./...clean.TestFTSDataIndexGatedOnFullText(full-text message keeps a live index; no-full-text message emitsIsDropped: true) andTestSearchFieldGatedOnFullText(SearchField()non-nil for full-text, nil otherwise).Supersedes #149 and #151.