[pgpool-committers: 3074] 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).



Modified Files
src/test/pgpool_setup | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

More information about the pgpool-committers mailing list