Nov - Dec 2023

3 commits
Fix issues in binary_upgrade_logical_slot_has_caught_up().
7 Dec 2023Amit Kapilamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #4022 of 2 reviewers saw the final version

Matches the strictness and permission-assertion changes in #402, with comment indentation corrected and src/include/catalog/catversion.h bumped. Amit forwarded Hayato's implementation from #400, explicitly credited in the patch header.

  • Vignesh Csaw the final versiontrailerVignesh approved the fix in #401, after which only comments, commit text, formatting and the catalog-version bump changed.
  • Amit Kapilasaw the final versioncommittercommitted the patch
Fix a random failure in 003_logical_slots.pl.
5 Dec 2023Amit Kapilamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #3981 of 1 reviewer saw the final version

The added subtwophasestate polling in src/bin/pg_upgrade/t/003_logical_slots.pl exactly matches #398.

  • Amit Kapilasaw the final versioncommittercommitted the patch
Fix a test in 003_logical_slots.
30 Nov 2023Amit Kapilamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #3921 of 1 reviewer saw the final version

Exactly matches the single autovacuum=off configuration addition in #392.

  • Amit Kapilasaw the final versiontrailerAmit accepted the test fix in #393, clarified the subscription-disable/shutdown race in #394, and committed it.

Oct - Nov 2023

5 commits
Fix uninitialized slot array access during the upgrade.
9 Nov 2023Amit Kapilamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #3801 of 1 reviewer saw the final version

Exactly matches #380: get_db_infos uses pg_malloc0, and get_old_cluster_logical_slot_infos loses redundant initialization.

  • Amit Kapilasaw the final versioncommittercommitted the patch
Fix the test 003_logical_slots.
7 Nov 2023Amit Kapilamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1Also in: pgsql: Migrate logical slots to the new node during an upgrade. (not this thread)
LLM analysis, 100% surelanded as postedfrom patchset #3733 of 3 reviewers saw the final version

The tmp_check chdir and explanatory comment in src/bin/pg_upgrade/t/003_logical_slots.pl exactly match #373.

  • Peter Smithsaw the final versiontrailerPeter reproduced the source-directory pollution and verified the fix with a VPATH build in #374.
  • Hou Zhijiesaw the final versiontrailerHou verified with Meson that generated scripts remained in the test directory in #375.
  • Amit Kapilasaw the final versioncommittercommitted the patch
Commit b195e6d482 forgot to update meson.build.
27 Oct 2023Amit Kapilamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #3721 of 1 reviewer saw the final version

Exactly matches the one-line Meson test-path correction in #372.

  • Amit Kapilasaw the final versioncommittercommitted the patch
Use shorter file names in the upgrade logical slots test.
27 Oct 2023Amit Kapilamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #3642 of 2 reviewers saw the final version

The report filename, TAP filename and publisher/subscriber variable renames exactly match #364.

  • Bharath Rupireddysaw the final versiontrailerBharath proposed shorter filenames and node names in #360 and #363 and explicitly approved the resulting patch in #370.
  • Amit Kapilasaw the final versioncommittercommitted the patch
Migrate logical slots to the new node during an upgrade.
26 Oct 2023Amit Kapilamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1Also in: Logical walsenders don't process XLOG_CHECKPOINT_SHUTDOWN (not this thread)
LLM analysis, 100% suremodified before commitlight changesfrom patchset #3552 of 6 reviewers saw the final version

Implementation and tests match #355; the commit shortens terminology in doc/src/sgml/ref/pgupgrade.sgml and adds a catalog-version bump. Hayato sent the patch and is a credited author alongside Hou.

  • Peter Smithsaw an earlier versiontrailerPeter repeatedly reviewed implementation, documentation and tests through #342, but the cache invalidation and error cleanup in #348 followed his latest review.
  • Bharath Rupireddysaw the final versiontrailerBharath drove WAL-validation and cleanup improvements, reported successful tests in #353, and supplied the final documentation wording in #356.
  • Dilip Kumarsaw an earlier versiontrailerDilip reviewed migration diagnostics and validation in #180, #213 and #250 and supported decoding-based validation in #300, before substantial implementation rework.
  • Vignesh Csaw an earlier versiontrailerVignesh found restoration and test defects, including the ineffective slot advance demonstrated in #344, before the later cache-cleanup changes in #348.
  • Shlok Kyalsaw an earlier versiontrailerShlok tested invalidation under overridden WAL retention and slot-capacity behavior in #332 and #334, before the later decoding cleanup changes.
  • Amit Kapilasaw the final versioncommittercommitted the patch

Sep 2023

1 commit
Flush logical slots to disk during a shutdown checkpoint if required.
14 Sep 2023Amit Kapilamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1Also in: persist logical slots to disk during shutdown checkpoint (landed as posted)

Credits across 9 commits

Author
Hayato Kuroda (Fujitsu)7
vignesh C2
Hayato Kuroda based on a suggestion by Andrew Dunstan1
Hou, Zhijie1
Julien Rouhaud1
Reviewer
Amit Kapilacommitter9
Peter Smith3
Bharath Rupireddy2
Dilip Kumar2
Hou, Zhijie2
vignesh C2
Ashutosh Bapat1
Michael Paquier1
Shlok Kyal1
Reported by
Andrew Dunstan1
Masahiko Sawada1
Peter Eisentraut1
Committer
Amit Kapila9