[pgpool-committers: 6485] pgpool: Feature: Check if socket file exists at startup and remove them

Bo Peng pengbo at sraoss.co.jp
Tue Jan 28 15:27:22 JST 2020


Feature: Check if socket file exists at startup and remove them if PID file doesn't exist.

If the previuos socket files exist, pgpool startup fails due to bind() failire.
This commit is to remove socket files at startup if PID file doesn't exist.

Also, I found some messages are effectively ignorede because log system is not yet initialized at start point.
I changed them to standard fprintf(stderr...).

Branch
------
V4_1_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=b0b52ef3d58a4ff4204dd1e2c33c5fb1c4d1374a

Modified Files
--------------
src/main/main.c        | 7 +++----
src/main/pgpool_main.c | 3 +++
2 files changed, 6 insertions(+), 4 deletions(-)



More information about the pgpool-committers mailing list