[pgpool-committers: 8843] pgpool: Deal with idle_session_timeout.

Tatsuo Ishii ishii at sraoss.co.jp
Thu Oct 27 09:23:51 JST 2022


Deal with idle_session_timeout.

If idle_session_timeout (added in PostgreSQL 14) is enabled and the
timeout fires, followings happen:

- If failover_on_backend_error is on (the default), Pgpool-II will
  trigger failover.

- If only one of PostgreSQL servers enables idle_session_timeout,
  Pgpool-II could hang.

To deal with idle_session_timeout detect_idle_session_timeout_error()
is added to detect the error code for idle_session_timeout. If the
error is detected, Pgpool-II returns the error code to frondend as a
fatal error and disconnects the session.  This is a similar fix
implemented for idle_in_transaction_session_timeout.

https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=3f5986eee360f12e6a0bb77aa46f95abf5f6bc10

Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2022-October/004209.html
Back-path-through: 4.0

Branch
------
master

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

Modified Files
--------------
src/include/protocol/pool_proto_modules.h |  3 ++-
src/protocol/pool_process_query.c         | 26 +++++++++++++++++++++++++-
2 files changed, 27 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list