]> granicus.if.org Git - postgresql/commit
Fix processing of PGC_BACKEND GUC parameters on Windows.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Apr 2014 16:41:31 +0000 (12:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Apr 2014 16:41:31 +0000 (12:41 -0400)
commitbdc3e95c2ae6362219ee182fbf3bd03e8f8c2ea5
treef0eb9114f338572c71e7a337fd911215ecc43eaf
parent1a496a12b3a85764ac87009220e2d5adf0dfb765
Fix processing of PGC_BACKEND GUC parameters on Windows.

EXEC_BACKEND builds (i.e., Windows) failed to absorb values of PGC_BACKEND
parameters if they'd been changed post-startup via the config file.  This
for example prevented log_connections from working if it were turned on
post-startup.  The mechanism for handling this case has always been a bit
of a kluge, and it wasn't revisited when we implemented EXEC_BACKEND.
While in a normal forking environment new backends will inherit the
postmaster's value of such settings, EXEC_BACKEND backends have to read
the settings from the CONFIG_EXEC_PARAMS file, and they were mistakenly
rejecting them.  So this case has always been broken in the Windows port;
so back-patch to all supported branches.

Amit Kapila
src/backend/utils/misc/guc.c