Nov 2018

3 commits
Handle EPIPE more sanely when we close a pipe reading from a program.
19 Nov 2018Tom Lanemaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+3 more
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #230 of 3 reviewers saw the final version

The copy.c changes match #23; the commit drops SIGUSR2 resetting from fd.c and the associated postgres.c comment, and removes a redundant errno reset. Tom explains the behavioral change in #31: temporarily restoring SIGUSR2's default action could terminate the backend.

  • Etsuro Fujitasaw an earlier versionLLM analysis, 98% sureEtsuro examined COPY error reporting in #5, challenged broad error suppression in #11, and assessed the final attachment's API and SIGPIPE behavior in #30, before the unreviewed SIGUSR2 change described in #31.
  • Kyotaro Horiguchisaw an earlier versionLLM analysis, 97% sureKyotaro identified unrelated-pipe SIGPIPE risks in #4 and challenged ClosePipeToProgram()'s remaining error policy in #29, before the SIGUSR2 behavior changed in #31; the commit also explicitly credits his review.
  • Thomas Munrosaw an earlier versionLLM analysis, 90% sureThomas examined the SIGPIPE policy in #7 and objected to suppressing crash signals in #12, a restriction retained in the eventual fix after substantial EOF-handling revisions.
Leave SIGTTIN/SIGTTOU signal handling alone in postmaster child processes.
17 Nov 2018Tom Lanemaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+1 more
LLM analysis, 100% surewritten from the discussion, no matching patch

Implements Tom's proposal in #26 to let postmaster children inherit SIGTTIN/SIGTTOU dispositions, removing resets across auxiliary processes and replication workers. The commit additionally removes redundant SIGCONT/SIGWINCH resets; none of the attachments contains this cleanup.

Avoid defining SIGTTIN/SIGTTOU on Windows.
17 Nov 2018Tom Lanemaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+1 more
LLM analysis, 100% surewritten from the discussion, no matching patch

Tom supplies the exact inline proposal in #26: guard the postmaster's SIGTTIN/SIGTTOU calls and remove their definitions from src/include/port/win32_port.h to avoid the SIGABRT collision. No attached patchset contains these changes.

Credits across 3 commits

Author
Tom LaneLLM1
Committer
Tom Lane3

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