Jan 2023

1 commit
Remove unneeded volatile qualifiers from postmaster.c.
28 Jan 2023Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surelanded as postedfrom patchset #262 of 2 reviewers saw the final version

The postmaster.c diff exactly matches #26, replacing five volatile flag declarations with bool.

  • Tom Lanesaw the final versiontrailerExplicitly endorsed the cleanup with '+1' in #27.
  • Andres Freundsaw the final versiontrailerExplicitly endorsed the cleanup with '+1' in #28.

Jan 2023

3 commits
Fix WaitEventSetWait() buffer overrun.
12 Jan 2023Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15.2REL_14_STABLE14.7REL_13_STABLE13.10+2 more
LLM analysis, 100% surelanded as postedfrom patchset #231 of 1 reviewer saw the final version

Both latch.c hunks exactly match #23, passing Min(nevents, set->nevents_space) to epoll_wait() and kevent().

  • Andres Freundsaw the final versiontrailerApproved the fix and recommended backpatching in #24.
Refactor DetermineSleepTime() to use milliseconds.
12 Jan 2023Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #190 of 1 reviewer saw the final version

Takes only the DetermineSleepTime() patch from the two-patch submission #19. The sole code adjustment removes a redundant inner Max(0, ...) while retaining the final nonnegative millisecond clamp.

  • Andres Freundsaw an earlier versionLLM analysis, 97% sureIdentified the unnecessary timeval conversion while reviewing #17 in #18, prompting the separate function refactor in #19, whose implementation he did not subsequently review in the thread.
Use WaitEventSet API for postmaster's event loop.
12 Jan 2023Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 99% surepart of a posted patchsetmoderate changesfrom patchset #190 of 1 reviewer saw the final version

Takes the main postmaster patch from #19, leaving DetermineSleepTime() for a separate commit. Besides comments and diagnostic wording, the committed version nulls pm_wait_set after freeing it in children and clears the pending fast-shutdown flag when processing immediate shutdown.

  • Andres Freundsaw an earlier versiontrailerShaped latch isolation, event handling, shutdown priority, and naming through #18, but shutdown-flag clearing was subsequently corrected in #19 and adjusted again at commit.

Dec 2022

3 commits
Allow parent's WaitEventSets to be freed after fork().
23 Dec 2022Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #131 of 1 reviewer saw the final version

Extracts the FreeWaitEventSetAfterFork() prerequisite from #13; its latch.c and latch.h diff has an identical stable patch ID. The other three patches were not included in this commit.

  • Andres Freundsaw the final versiontrailerReviewed the WaitEventSet lifecycle design of #7 in #8, and its inherited-set cleanup prerequisite remained unchanged through #13.
Don't leak a signalfd when using latches in the postmaster.
23 Dec 2022Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #132 of 2 reviewers saw the final version

Extracts only the inherited-signalfd cleanup prerequisite from #13. Its InitializeLatchSupport() diff has an identical stable patch ID.

  • Andres Freundsaw the final versiontrailerQuestioned the inherited-descriptor leak in #6, leading to its isolation as a prerequisite with only explanatory-comment changes afterward.
  • Justin Pryzbysaw the final versiontrailerCorrected the signalfd comment's possessive wording in #9, which Thomas confirmed adopting in #11.
Add WL_SOCKET_ACCEPT event to WaitEventSet API.
23 Dec 2022Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #131 of 1 reviewer saw the final version

Extracts the WL_SOCKET_ACCEPT prerequisite from #13, including Windows FD_ACCEPT handling and the Unix WL_SOCKET_READABLE alias. Its two-file diff has an identical stable patch ID.

  • Andres Freundsaw the final versiontrailerReviewed the socket-event abstraction and advocated separating prerequisites in #6, after which the accept-event implementation received only light explanatory changes.

Credits across 7 commits

Author
Thomas MunroLLM7
Reviewer
Andres Freund6
Justin Pryzby1
Tom Lane1
Committer
Thomas Munro7

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