Nov 2022

1 commit
Provide sigaction() for Windows.
9 Nov 2022Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #293 of 3 reviewers saw the final version

The executable changes across all five files match #29 modulo rebase. The commit omits the proposed introductory-comment rewrite in src/port/pqsignal.c and rewrites the commit message.

  • Tom Lanesaw the final versionLLM analysis, 82% sureTom requested POSIX-style Windows signal interfaces in #25, and Thomas explicitly presented the sigaction() implementation in #29 as addressing that request.
  • Justin Pryzbysaw the final versionLLM analysis, 85% sureJustin reported a concrete recovery-test PANIC against #29 with the failing log in #30, although subsequent investigation attributed it to unrelated hash code.
  • Andres Freundsaw the final versionLLM analysis, 83% sureAndres investigated the failure reported against #29 and identified an existing, unrelated hash-code problem in #31.

Jul 2022

6 commits
Emulate sigprocmask(), not sigsetmask(), on Windows.
16 Jul 2022Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surelanded as postedfrom patchset #261 of 1 reviewer saw the final version

The changed lines in src/backend/port/win32/signal.c and src/include/libpq/pqsignal.h exactly match #26, including SIG_BLOCK, SIG_UNBLOCK, SIG_SETMASK, and old-mask retrieval.

  • Tom Lanesaw the final versiontrailerTom said the patch passed an eyeball check, while noting he could not test it, in #27.
Make dsm_impl_posix_resize more future-proof.
16 Jul 2022Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15beta3REL_14_STABLE14.5REL_13_STABLE13.8+3 more
LLM analysis, 100% surelanded as postedfrom patchset #242 of 2 reviewers saw the final version

All changed lines match #24: src/backend/storage/ipc/dsm_impl.c adds save_sigmask and saves and restores the caller's mask with sigprocmask(), retaining the IsUnderPostmaster guard.

  • Alvaro Herrerasaw the final versiontrailerAlvaro endorsed saving and restoring the caller's mask in #21 before the attachment appeared and is explicitly credited for that design review.
  • Tom Lanesaw the final versiontrailerAfter discussing API compatibility in #22 and #23, Tom explicitly accepted the attached implementation in #25.
Don't clobber postmaster sigmask in dsm_impl_resize.
14 Jul 2022Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15beta3REL_14_STABLE14.5REL_13_STABLE13.8+3 more
LLM analysis, 100% surewritten from the discussion, no matching patch

No attachment introduces the IsUnderPostmaster guards around signal-mask manipulation. Thomas identified postmaster mask clobbering after buildfarm failures in #19 and reported pushing this correction in #20.

Create a distinct wait event for POSIX DSM allocation.
14 Jul 2022Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

The new DSMAllocate event, enum entry, name mapping, and documentation do not occur in an attached patch. They implement Andres's objection to the DSMFillZeroWrite name in #17, which Thomas reported fixing in #18.

  • Andres Freundsaw the final versionLLM analysis, 99% sureAndres identified the misleading allocation wait-event name while reviewing #15 in #17, directly prompting this change.
Remove redundant ftruncate() for POSIX DSM memory.
14 Jul 2022Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #150 of 1 reviewer saw the final version

This lands the second patch of #15, removing Linux's redundant ftruncate() and reporting waits around either allocation syscall. Compared with the attachment, the non-Linux branch retains the newly added ftruncate() EINTR retry loop.

  • Andres Freundsaw an earlier versionLLM analysis, 94% sureAndres reviewed the syscall split and argued in #17 that ftruncate() retries remained necessary on other operating systems, leading to the loop added after #15.
Block signals while allocating DSM memory.
14 Jul 2022Thomas Munromaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15beta3REL_14_STABLE14.5REL_13_STABLE13.8+3 more
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #150 of 2 reviewers saw the final version

This lands the first patch of #15, blocking signals during DSM allocation and removing the pending-interrupt escape path. The committed implementation additionally retries ftruncate() on EINTR and preserves errno across signal unblocking.

  • Alvaro Herrerasaw an earlier versiontrailerAlvaro tested and endorsed the first patch under GDB in #16, before the ftruncate() retry and errno-preservation changes were added.
  • Andres Freundsaw an earlier versiontrailerAndres challenged the successive retry approaches in #2, #9, and #11, then requested the additional ftruncate() retry in #17, without a subsequent review of the edited diff.

Credits across 7 commits

Author
Thomas MunroLLM5
Reviewer
Alvaro Herrera2
Tom Lane2
Andres Freund1
Reported by
Alvaro Herrera1
Andres Freund1
Nicola Contu1
Committer
Thomas Munro7

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