Nov 2019

3 commits
Sync patternsel_common's operator selection logic with pattern_prefix's.
20 Nov 2019Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 99% surewritten from the discussion, no matching patch

This extends the decoupling proposed in #3 to patternsel_common() and prefix_selectivity() in src/backend/utils/adt/like_support.c; neither function is changed by the attachment. It also keeps name-column comparison constants as text, avoiding truncation.

Reduce match_pattern_prefix()'s dependencies on index opfamilies.
20 Nov 2019Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surelanded as postedfrom patchset #3

The src/backend/utils/adt/like_support.c changes exactly match #3. Differences in src/include/catalog/pg_operator.dat are only whitespace and line wrapping of the added OID symbols.

Fix corner-case failure in match_pattern_prefix().
19 Nov 2019Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+1 more
LLM analysis, 100% surewritten from the discussion, no matching patch

This implements Tom Lane's proposal in #2 to tolerate missing opfamily operators, replacing three errors with graceful returns in match_pattern_prefix() and adding btree_index regression coverage. It predates the attachment, and #3 explicitly confirms that the stopgap fix was already pushed.

Credits across 3 commits

Author
Tom LaneLLM1
Committer
Tom Lane3

N LLM means N of the credits come from LLM analysis, not from commit trailers.