public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tatsuo Ishii <[email protected]>
To: [email protected]
Subject: pgpool: Close listening sockets before forking.
Date: Mon, 09 Mar 2026 09:19:09 +0000
Message-ID: <[email protected]> (raw)
Close listening sockets before forking.
Previously, when pgpool main process forks sub processes (i.e. user
session process, pcp_main process, health check process, streaming
replication check process and life check process), they inherited
pgpool and/or pcp listening sockets. However some of processes do not
need those sockets:
- user session process - pcp sockets are unnecessary
- pcp main process - pgpool sockets are unnecessary
- health check, streaming replication check and life check process -
pgpool and pcp sockets are unnecessary
The remaining listening sockets could be a potential problem when
those process go down. Since they may keep the listening sockets for a
while, it could be possible that it prevents next pgpool starting up
from binding those ports.
Let's close those unnecessary sockets after forking. For this purpose
new function close_listening_sockets() is introduced.
Discussion: https://www.postgresql.org/message-id/20260302.100028.1346768433787074248.ishii%40postgresql.org
Backpatch-through: v4.4
Branch
------
V4_5_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=5d522420ffe6c070dc81a16dbeee5ab33f6b9...
Modified Files
--------------
src/include/pool.h | 13 ++++++++++++-
src/main/pgpool_main.c | 36 ++++++++++++++++++++++++++++++++++++
src/watchdog/wd_lifecheck.c | 6 +++++-
3 files changed, 53 insertions(+), 2 deletions(-)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pgpool: Close listening sockets before forking.
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox