]> granicus.if.org Git - postgresql/commit
On Darwin, detect and report a multithreaded postmaster.
authorNoah Misch <noah@leadboat.com>
Thu, 8 Jan 2015 03:35:44 +0000 (22:35 -0500)
committerNoah Misch <noah@leadboat.com>
Thu, 8 Jan 2015 03:36:35 +0000 (22:36 -0500)
commit83fb1ca5cf393f3a12930bd9275a711cd858c823
tree32ed00cbde0c67dd3015e5e6a100a7f4e9f336f3
parente8f82b4163edc806ecefdcfa6dfed092678218c9
On Darwin, detect and report a multithreaded postmaster.

Darwin --enable-nls builds use a substitute setlocale() that may start a
thread.  Buildfarm member orangutan experienced BackendList corruption
on account of different postmaster threads executing signal handlers
simultaneously.  Furthermore, a multithreaded postmaster risks undefined
behavior from sigprocmask() and fork().  Emit LOG messages about the
problem and its workaround.  Back-patch to 9.0 (all supported versions).
configure
configure.in
src/backend/postmaster/postmaster.c
src/common/exec.c
src/include/pg_config.h.in