[pgpool-committers: 3072] pgpool: Fix pgpool_setup to not confuse log output

Tatsuo Ishii ishii at postgresql.org
Sun Mar 27 08:09:14 JST 2016


Fix pgpool_setup to not confuse log output

Before it simply redirects the stdout and stderr of pgpool process to
a log file.  This could cause log contents being garbled or even
missed because of race condition caused by multiple process being
writing concurrently. I and Usama found this while investigating the
regression failure of 004.watchdog.

To fix this, pgpool_setup now generates startall script so that pgpool
now sends stdout/stderr to cat command and cat writes to the log file
(It seems the race condition does not occur when writing to a pipe).

Branch
------
V3_4_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=8b237a77702c972647cc723393c5c7c91fcffd26

Modified Files
--------------
src/test/pgpool_setup | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



More information about the pgpool-committers mailing list