model-writtenrun 8665 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed replacing inappropriate fixed contsel estimates for JSONB and other core matching operators with statistics-based estimation extracted from ltreeparentsel, using a default of 0.01 and retaining a stub join estimator; geometric estimators remained separate because their types lacked the required statistics #1.
- Tom extended the series to hstore, ltree, and pg_trgm, choosing scalar estimators for ltree ordering comparisons and accepting a pg_trgm plan change with a better estimate; cube and seg were left untouched because histogram ordering could bias the sampling assumption, while other join-estimator cleanups awaited useful implementations #2.
- After a month, Alexey Bashtanov reviewed the patches, requested an independent default constant, and supplied a JSONB test; discussion settled on DEFAULT_MATCHING_SEL and corresponding function names while preserving the existing DEFAULT_MATCH_SEL symbol for extension compatibility #3 #4 #5 #6 #7 #8 #9.
- Tom posted the renamed estimators and new constant, rebasing the extension changes into already-created, unreleased upgrade versions instead of adding another version increment #10.
- Alexey acknowledged the revision, and Tom committed both patches as a80818605e with only an additional catalog-version bump; Tom's final message confirmed that the series was pushed and thanked Alexey for reviewing #11 #12.