Apr 2026

1 commit
Release postmaster working memory context in slotsync worker
6 Apr 2026Fujii Masaomaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #44 of 4 reviewers saw the final version

The commit preserves the seven-line PostmasterContext cleanup from #4 in src/backend/replication/logical/slotsync.c, modulo rebase. Only the commit-message rationale changes to preventing unintended use, as Fujii confirms in #7.

  • Andres Freundsaw the final versiontrailerAndres questioned freeing inherited memory because of copy-on-write costs and proposed alternatives in #2; subsequent changes only rebased the code and revised the commit message.
  • Tom Lanesaw the final versiontrailerTom defended releasing postmaster-private data in #3, prompting the rationale revision in #4, with no subsequent logic changes.
  • Tiancheng Gesaw the final versiontrailerTiancheng approved the change but explained that deleting the context does not wipe inherited memory in #5, leading to the committed wording correction.
  • Chao Lisaw the final versiontrailerChao approved the patch and proposed more precise wording about access through PostmasterContext in #6, which Fujii addressed in the final commit message.

Credits across 1 commit

Author
Fujii Masao1
Reviewer
Andres Freund1
Chao Li1
getiancheng1
Tom Lane1
Committer
Fujii Masao1