Feb 2020

1 commit
Add equalimage B-Tree support functions.
26 Feb 2020Peter Geogheganmaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 92% suremodified before commitsignificant changesfrom patchset #300 of 3 reviewers saw the final version

Substantially reworks #30's support-function prototype as proposed in #31 and developed jointly in #32: pg_amproc support function 4 replaces the new grammar and pg_opclass column, while datum.c retains the generic true-returning routine as btequalimage(). It adds collation handling, _bt_allequalimage(), validation, registrations, documentation and tests; the commit credits both Peter Geoghegan and patchset sender Anastasia Lubennikova.

  • Antonin Houskasaw an earlier versionLLM analysis, 99% sureRequired a safe false default in #10 and identified unsafe array, record and geometric opclass markings in #15, before the substantial support-function redesign.
  • Robert Haassaw an earlier versionLLM analysis, 97% sureResponding to #18's conditional-safety problem, proposed replacing the flag with an optional Boolean-returning support function in #24, which #30 implemented before further structural changes.
  • Alvaro Herrerasaw an earlier versionLLM analysis, 88% sureCritiqued the BITWISE terminology specifically in SQL grammar, structure names and comments in #19, prompting reconsideration in #21 before the eventual equalimage naming and redesign.

Nov 2019

2 commits
Make _bt_keep_natts_fast() use datum_image_eq().
12 Nov 2019Peter Geogheganmaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 99% surewritten from the discussion, no matching patch

Changes _bt_keep_natts_fast() in src/backend/access/nbtree/nbtutils.c from datumIsEqual() to datum_image_eq(), implementing the TOAST-independent equality requirement discussed in #1 and #7. None of the attached patchsets contains this change, and the commit explicitly identifies it as deduplication preparation.

Teach datum_image_eq() about cstring datums.
12 Nov 2019Peter Geogheganmaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 99% surewritten from the discussion, no matching patch

Adds the typLen == -2 cstring comparison branch to datum_image_eq() in src/backend/utils/adt/datum.c, addressing the name-opclass storage case raised in #6 and the generic image-comparison approach in #7. No attached patchset contains this addition; the later datum.c attachment adds a separate support function.

Credits across 3 commits

Author
Anastasia Lubennikova1
Peter Geoghegan1
Committer
Peter Geoghegan3