Jan 2025

1 commit
Move nbtree preprocessing into new .c file.
13 Jan 2025Peter Geogheganmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1Also in: Moving nbtree preprocessing code into a new .c file (modified before commit)

Aug 2024

1 commit
Fix nbtree lookahead overflow bug.
26 Aug 2024Peter Geogheganmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17rc1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

The one-line bound on targetdistance doubling exactly matches Peter's inline fix in #78, following #77. Git ancestry identifies this as the development commit and 6749d4aabe as its REL_17_STABLE backport, so the duplicate candidate is counted once.

  • Alexander Lakhinsaw the final versionLLM analysis, 100% sureReported the backward-scan failure with a reproducer and debugger evidence of negative targetdistance in #77, directly prompting the inline bounds fix.

Apr 2024

5 commits
Remove unneeded nbtree array preprocessing assert.
22 Apr 2024Peter Geogheganmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

The cursor assertion report in #72 led Peter to propose removing Assert(so->numArrayKeys) and generalizing the preprocessing no-op contract in #73. The commit implements those changes in nbtutils.c, and #74 confirms the push.

  • Alexander Lakhinsaw the final versionLLM analysis, 100% sureProvided the FETCH RELATIVE 0 cursor reproducer in #72 that demonstrated preprocessing can be revisited without array keys.
Don't try to fix eliminated nbtree array scan keys.
18 Apr 2024Peter Geogheganmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 98% suremodified before commitmoderate changesfrom patchset #701 of 1 reviewer saw the final version

The attachment in #70 adds an InvalidStrategy guard to DESC commutation; the commit instead returns immediately for every eliminated array key and asserts SK_SEARCHARRAY. Peter explains this broader local fix in #71.

  • Peter Geoghegansaw the final versioncommittercommitted the patch
Remove redundant nbtree preprocessing assertions.
8 Apr 2024Peter Geogheganmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Removes four _bt_preprocess_keys assertions following Tom's Coverity report in #63 and the agreed additional removals in #67 and #68. No attached patch contains this cleanup, and #69 confirms completion.

  • Tom Lanesaw the final versionLLM analysis, 100% sureReported the suspicious assertion in #63 and identified two further assertions as redundant in #67, producing the final agreed cleanup.
Avoid extra lookups with nbtree array inequalities.
7 Apr 2024Peter Geogheganmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Alexander's two-array-inequality reproducer in #61 exposed the unnecessary final preprocessing pass explained in #62. The commit replaces its array-count assertion with an early return when no equality arrays remain.

  • Alexander Lakhinsaw the final versionLLM analysis, 100% sureReported a reproducible assertion failure with two SAOP inequalities in #61, revealing the case missed by single-key fast-path tests.
Enhance nbtree ScalarArrayOp execution.
6 Apr 2024Peter Geogheganmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #600 of 3 reviewers saw the final version

Applying #60 to the commit's parent succeeds; comparison shows additional logic edits in nbtree.c, nbtsearch.c, nbtutils.c, and nbtree.h, including simplified parallel scheduling, a parallel-array limit, and revised lookahead state and arithmetic. Planner, costing, documentation, and tests match; the commit also credits Matthias's incorporated work from #51.

  • Heikki Linnakangassaw an earlier versiontrailerReviewed #24 in #25, raising compatibility, preprocessing overhead, state-machine clarity, and precheck concerns before substantial subsequent redesign.
  • Matthias van de Meentsaw an earlier versiontrailerReviewed design and implementation across these versions, reported cross-type and assertion bugs, and supplied fixes in #51 and #54, before later lookahead, parallel-scan, costing, and committer changes.
  • Tomas Vondrasaw an earlier versiontrailerBenchmarked #24 and reported repeatable regressions in #26, prompting revised page-skipping heuristics and further substantial changes.

Credits across 7 commits

Author
Peter Geoghegan2
Donghang LinLLM1
Matthias van de Meent1
Reviewer
Heikki Linnakangas1
Matthias van de Meent1
Peter Geoghegancommitter1
Tomas Vondra1
Reported by
Alexander Lakhin3
Donghang Lin1
Tom Lane1
Committer
Peter Geoghegan7

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