Jul 2026

1 commit
Fix parsing of underscores in pg_plan_advice occurrence numbers
19 Jul 2026Daniel GustafssonmasterunreleasedREL_19_STABLE19beta3Also in: pg_plan_advice: fix parsing underscore in numbers (modified before commit)

Mar - Apr 2026

21 commits
pg_plan_advice: Fix another unique-semijoin bug.
17 Apr 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surewritten from the discussion, no matching patch1 of 2 reviewers saw the final version

Implements the outer-join RTI filtering diagnosed in #215 and prototyped inline in #217, with corrected filtering order, no redundant copy, and a regression test as explained in #218.

  • Alexander Lakhinsaw the final versionLLM analysis, 95% sureReported the exact unique-semijoin failure with a reproducer in #214.
  • Tender Wangsaw an earlier versionLLM analysis, 95% sureDiagnosed the extra join RTI and tested an inline fix in #217, subsequently corrected in #218.
pg_plan_advice: Export feedback-related definitions.
13 Apr 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #2091 of 1 reviewer saw the final version

Takes the feedback-export component of #209: the changed lines moving PGPA_FB definitions and exporting pgpa_planner_feedback_warning are identical. The retry-loop component remains uncommitted in #213.

  • Tom Lanesaw the final versionLLM analysis, 95% sureGave the first two patches a quick positive code review and endorsed their approach in #210.
pg_plan_advice: Fix a bug when a subquery is pruned away entirely.
13 Apr 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #2090 of 1 reviewer saw the final version

Exactly extracts the pruned-subquery component of #209, clearing unusable sj_unique_rels in pgpa_compute_rt_offsets and adding the semijoin regression case.

  • Alexander Lakhinsaw an earlier versionLLM analysis, 91% sureReported the missing-rtoffset failure in the landed alternative-plan machinery in #197, prompting the new logic in #209.
pg_plan_advice: Add alternatives test to Makefile.
13 Apr 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #209

Exactly extracts the Makefile component of #209, adding alternatives to the regression test list.

pg_plan_advice: Handle non-repeatable TABLESAMPLE scans.
13 Apr 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #2090 of 1 reviewer saw the final version

Exactly extracts the TABLESAMPLE component of #209, recognizing scan-level Materialize nodes and adding both inner- and outer-side tests.

  • Alexander Lakhinsaw an earlier versionLLM analysis, 91% sureReported a nonrepeatable TABLESAMPLE failure in #199, leading to new scan and join walker handling.
pg_stash_advice: Allow stashed advice to be persisted to disk.
7 Apr 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetmoderate changesfrom patchset #187

Extracts persistence from #187, adding queryId-zero rejection and changing dump iterations to shared locks as described in #208. Lukas Fittl is credited as coauthor, so is excluded from suggested reviewers.

Add pg_stash_advice contrib module.
6 Apr 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1871 of 4 reviewers saw the final version

Extracts the pg_stash_advice module from #187; its code matches modulo whitespace, with persistence left to a separate commit.

  • Lukas Fittlsaw the final versiontrailerReviewed stash design and safety in #164 and tested and reviewed the final version in #192.
  • Alexandra Wangsaw an earlier versiontrailerTested the stash and identified ID overflow in #127, before locking, naming, and file-organization changes.
  • David G. Johnstonsaw an earlier versiontrailerReviewed stash documentation, security, and function behavior in #112, before substantial stash revisions.
  • Jakub Wartaksaw an earlier versiontrailerTested stash usage in #113 and identified unnecessary exclusive iteration locks in #173, before later restructuring.
pg_plan_advice: Avoid assertion failure with partitionwise aggregate.
30 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Adds the relids NULL guard in pgpa_build_scan following Alexander’s report #172 and Haas’s proposed fix #175; that proposal is not an indexed patchset.

  • Alexander Lakhinsaw the final versionLLM analysis, 95% sureProvided the partitionwise-aggregate assertion reproducer in #172 that directly motivated the guard.
pg_plan_advice: Invent DO_NOT_SCAN(relation_identifier).
26 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1681 of 1 reviewer saw the final version

Exactly extracts the DO_NOT_SCAN component of #168, preserving alternative-plan choices by disabling scans of unselected relations.

  • Lukas Fittlsaw the final versiontrailerReviewed the initial alternatives design in #164 and explicitly approved the revised patches in #169.
Add an alternative_plan_name field to PlannerInfo.
26 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1681 of 1 reviewer saw the final version

Exactly extracts the alternative_plan_name component of #168; the earlier alternative_root pointer proposal was replaced before submission.

  • Lukas Fittlsaw the final versiontrailerRaised pointer-lifetime concerns in #164 and approved the plan-name replacement in #169.
pg_plan_advice: Refactor to invent pgpa_planner_info
26 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetmoderate changesfrom patchset #1630 of 1 reviewer saw the final version

Extracts pgpa_planner_info from #163, but moves allocation into the persistent memory context for GEQO and corrects array growth using pg_nextpower2_32.

  • Lukas Fittlsaw an earlier versiontrailerReviewed state allocation and suggested power-of-two sizing in #164, before the additional GEQO memory-lifetime correction.
Respect disabled_nodes in fix_alternative_subplan.
26 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1631 of 1 reviewer saw the final version

Exactly extracts the disabled_nodes accounting component of #163, adding SubPlan accounting and comparison in fix_alternative_subplan.

  • Lukas Fittlsaw the final versiontrailerApproved the accounting fix and corrected its commit reference in #164.
get_memoize_path: Don't exit quickly when PGS_NESTLOOP_PLAIN is unset.
24 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #153

Changes the posted joinpath.c condition from == 0 to != 0 so the shortcut is used only when plain nested loops are enabled; Haas acknowledges the reversed condition in #162.

test_plan_advice: Set TAP test priority 50 in meson.build.
20 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Implements Matheus Alcantara’s inline Meson priority-50 proposal and benchmark in #152, accepted after Haas’s test in #154.

  • Robert Haassaw the final versioncommittercommitted the patch
pg_plan_advice: Avoid a crash under GEQO.
17 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #1320 of 1 reviewer saw the final version

Retains the memory-context fix in #132 and additionally copies uniquerel->relids with bms_copy; #139 explains why the submitted fix alone remained incorrect.

  • Alexander Lakhinsaw an earlier versionLLM analysis, 95% sureReported a reproducible GEQO crash in #129, before the memory-context and bitmap-copy fixes.
Test pg_plan_advice using a new test_plan_advice module.
17 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1262 of 2 reviewers saw the final version

Extracts test_plan_advice from #126, adding only the Makefile include path for the installed pg_plan_advice header.

  • Alexandra Wangsaw the final versiontrailerRan the test module and explicitly approved the remaining test patch in #127.
  • Lukas Fittlsaw the final versiontrailerTested the replanning module with three other planner patches and reviewed its generation and feedback behavior in #128.
pg_plan_advice: Always install pg_plan_advice.h, and in the right place
17 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surelanded as postedfrom patchset #1301 of 1 reviewer saw the final version

The Makefile and Meson header-install changes exactly match Zsolt Parragi’s patch #130.

  • Robert Haassaw the final versioncommittercommitted the patch
pg_plan_advice: Fix failures to accept identifier keywords.
16 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1281 of 1 reviewer saw the final version

Extracts only the identifier-keyword parser changes and associated tests from #128; all committed changed lines occur in that broader fix patch.

  • Robert Haassaw the final versioncommittercommitted the patch
Add pg_plan_advice contrib module.
12 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1252 of 9 reviewers saw the final version

Extracts the main pg_plan_advice module from #125, with generated-directory .gitignore entries and comment wrapping; collection, stash, and replanning-test patches remained separate.

  • Lukas Fittlsaw the final versiontrailerPerformed detailed post-commit review of the landed main module and supplied fixes in #128.
  • Jakub Wartaksaw the final versiontrailerRepeated round-trip and workload testing culminated in #113 and #118, followed only by light main-module edits.
  • Greg Burdno review foundtrailerHis review in #18 addresses core prerequisites rather than the main module.
  • Jacob Championsaw an earlier versiontrailerFuzzed advice parsing and supplied identifier, partition, and nesting reproducers through #72, before later module changes.
  • Haibo Yansaw an earlier versiontrailerReviewed identifiers and GEQO behavior in #40 and stress-tested that version in #45.
  • Dian Faysaw an earlier versiontrailerTested RLS and discussed negative advice as Dian M Fay in #14, well before the final module revision.
  • Ajay Palsaw an earlier versiontrailerReported unwanted NO_GATHER and elided-Append behavior and tested GEQO through #100.
  • John Naylorsaw an earlier versiontrailerReviewed the module’s hashing choices in #64, before subsequent functional changes.
  • Alexandra Wangsaw an earlier versiontrailerReviewed documentation and then found list, pointer, DSM, and test defects in #106, before fixes and the collector split.
Allow extensions to mark an individual index as disabled.
10 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1081 of 1 reviewer saw the final version

Exactly extracts the disabled-index component of #108, adding an index flag without hiding indexes from other optimizations.

  • Alexandra Wangsaw the final versiontrailerApproved the disabled-index patch in #104; its code remained unchanged through the source version.
Replace get_relation_info_hook with build_simple_rel_hook.
9 Mar 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 98% surepart of a posted patchsetlight changesfrom patchset #1080 of 1 reviewer saw the final version

Extracts the build_simple_rel_hook component of #108, correcting only the old hook name in a comment.

  • Alexandra Wangno review foundtrailerHer ambiguous reference to reviewing the second patch in #104 appears to concern the large main module, and no separate hook review is identifiable.

Jan - Feb 2026

8 commits
Store information about Append node consolidation in the final plan.
10 Feb 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #971 of 7 reviewers saw the final version

Extracts Append-consolidation metadata from #97, with only pg_overexplain expected-output lines redistributed between prerequisite commits; Lukas Fittl’s earlier AppendPathInput contribution is credited as coauthorship.

  • Lukas Fittlsaw an earlier versiontrailerReviewed range-table metadata in #41 and proposed AppendPathInput in #60; later Append propagation fixes followed.
  • Jakub Wartaksaw an earlier versiontrailerTested the complete series through #73, before later Append propagation corrections.
  • Greg Burdsaw an earlier versiontrailerReviewed the infrastructure in #18, before the AppendPathInput rewrite and subsequent logic fixes.
  • Jacob Championno review foundtrailerHis identifiable reviews and reproducers concern the advice module, not this metadata prerequisite.
  • Amit Langotesaw an earlier versiontrailerReviewed the infrastructure design in #22, before the Append representation and propagation changed.
  • Haibo Yansaw an earlier versiontrailerReviewed metadata handling in #40, before the AppendPathInput rewrite.
  • Alexandra Wangsaw the final versiontrailerReviewed the metadata components in #93 and explicitly approved the revised patches in #98.
Store information about elided nodes in the final plan.
10 Feb 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #976 of 7 reviewers saw the final version

Extracts elided-node metadata from #97; optimizer code is unchanged, while expected output is adjusted to match this component’s position in the committed series.

  • Lukas Fittlsaw the final versiontrailerReviewed the metadata design in #41, after which this component received only light changes.
  • Jakub Wartaksaw the final versiontrailerExplicitly reviewed this metadata component and tested round trips in #73, before only test-output changes.
  • Greg Burdsaw the final versiontrailerReviewed this prerequisite in #18, with only comments and tests changing afterward.
  • Jacob Championno review foundtrailerHis identifiable reviews and reproducers concern the advice module, not this metadata prerequisite.
  • Amit Langotesaw the final versiontrailerReviewed the infrastructure design in #22, followed only by light changes to this component.
  • Haibo Yansaw the final versiontrailerReviewed metadata and serialization concerns in #40, before only light changes to this component.
  • Alexandra Wangsaw the final versiontrailerReviewed the metadata components in #93 and explicitly approved the revised patches in #98.
Store information about range-table flattening in the final plan.
10 Feb 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #976 of 7 reviewers saw the final version

Extracts range-table-flattening metadata from #97, removing expected-output details that belong to the subsequent elided-node and Append commits.

  • Lukas Fittlsaw the final versiontrailerReviewed the metadata design in #41, after which this component received only light changes.
  • Jakub Wartaksaw the final versiontrailerExplicitly reviewed this metadata component and tested round trips in #73, before only test-output changes.
  • Greg Burdsaw the final versiontrailerReviewed this prerequisite in #18, with only comments and tests changing afterward.
  • Jacob Championno review foundtrailerHis identifiable reviews and reproducers concern the advice module, not this metadata prerequisite.
  • Amit Langotesaw the final versiontrailerReviewed the infrastructure design in #22, followed only by light changes to this component.
  • Haibo Yansaw the final versiontrailerReviewed metadata and serialization concerns in #40, before only light changes to this component.
  • Alexandra Wangsaw the final versiontrailerReviewed the metadata components in #93 and explicitly approved the revised patches in #98.
Pass cursorOptions to planner_setup_hook.
10 Feb 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #97

Exactly extracts the planner_setup_hook cursorOptions component of #97.

Fix PGS_CONSIDER_NONPARTIAL interaction with Materialize nodes.
10 Feb 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #97

Exactly extracts the Materialize/PGS_CONSIDER_NONPARTIAL component of #97, moving the decision from cost_material into its callers.

Fix mistakes in commit 4020b370f214315b8c10430301898ac21658143f
29 Jan 2026Robert Haasmaster19beta1REL_19_STABLE19beta1Also in: pgsql: Allow for plugin control over path generation strategies. (written from the discussion, no matching patch)
LLM analysis, 99% surewritten from the discussion, no matching patch4 of 4 reviewers saw the final version

The fixes in costsize.c, createplan.c, and pathnode.c follow #84, #85, #87, and #88; Haas confirms choosing explicit initialization over blanket zeroing in #91. The parallel discussion in thread #246200 also contributed a materialization-failure report, but its sole attachment postdates the commit and does not displace this thread's direct contribution.

  • Zsolt Parragisaw the final versionLLM analysis, 95% sureIdentified the unconditional disabled_nodes reset in the landed code in #84.
  • Tom Lanesaw the final versionLLM analysis, 95% sureReported the buildfarm Valgrind failure in materialize_finished_plan in #85.
  • Lukas Fittlsaw the final versionLLM analysis, 95% sureDiagnosed the missing parallel_workers initialization and proposed initializing the dummy path in #87.
  • Richard Guosaw the final versionLLM analysis, 95% sureIdentified dereferencing spath before its NULL check in #88.
Allow for plugin control over path generation strategies.
28 Jan 2026Robert Haasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #792 of 6 reviewers saw the final version

Extracts the planner strategy-mask component of #79, changing only two comment typos; #83 announces its landing and resends the remainder.

  • Lukas Fittlsaw the final versiontrailerPorted pg_hint_plan to the new hooks, found the cost_index issue, and confirmed the corrected hooks in #51.
  • Jakub Wartaksaw the final versiontrailerExplicitly reviewed the strategy-mask prerequisite and tested TPC-H round trips in #73.
  • Greg Burdsaw an earlier versiontrailerReviewed the initial strategy-mask infrastructure in #18, before hook-placement and cost_index corrections.
  • Jacob Championno review foundtrailerHis identifiable thread review concerns pg_plan_advice parsing and matching rather than the strategy-mask prerequisite.
  • Amit Langotesaw an earlier versiontrailerReviewed the infrastructure design in #22, before subsequent hook-placement and costing changes.
  • Haibo Yansaw an earlier versiontrailerReviewed GEQO and infrastructure behavior in #40, before the cost_index correction.
Update some comments for fasthash
21 Jan 2026John Naylormaster19beta1REL_19_STABLE19beta1Also in: Update some comments for fasthash (modified before commit)

Credits across 30 commits

Author
Robert Haas20 LLM21
Chao Li1
John NaylorLLM1
Lukas Fittl1
Matheus Alcantara1
Zsolt Parragi1
Reviewer
Lukas Fittl12
Alexandra Wang8
Jakub Wartak6
Greg Burd5
Haibo Yan5
Jacob Champion5
Amit Langote4
Robert Haascommitter3
Ajay Pal1
Daniel Gustafsson1
David G. Johnston1
Dian M Fay1
John Naylor1
zengman1
Reported by
Alexander Lakhin5
Chao Li1
Lukas Fittl1
Michael Paquier1
Richard Guo1
Robert Haas1
Tom Lane1
Zsolt Parragi1
Co author
Lukas Fittl2
Daniel Gustafsson1
Robert Haas1
Committer
Robert Haas28
Daniel Gustafsson1
John Naylor1

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