pgpool: Feature: implement protocol version 3.2 BackendKeyData and quer

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgpool-committers(at)lists(dot)postgresql(dot)org
Subject: pgpool: Feature: implement protocol version 3.2 BackendKeyData and quer
Date: 2025-07-15 08:51:54
Message-ID: E1ubbOD-001KHW-1W@gothos.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-committers

Feature: implement protocol version 3.2 BackendKeyData and query cancel message.

Starting from PostgreSQL 18, frontend/backend protocol has been
changed to 3.2. In the changes the BackendKeyData and query cancel
message are modified to allow variable length cancel key.

This commit implements the changes and now we can connect to
PostgreSQL frontend and backend using 3.2 protocol.

Example session is:
PGMAXPROTOCOLVERSION="3.2" psql -p 11000 test

Author: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Discussion: https://www.postgresql.org/message-id/20250714.155710.1706961744888449986.ishii%40postgresql.org

Branch
------
master

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

Modified Files
--------------
src/auth/pool_auth.c | 85 ++++++++++++++++++-------------
src/context/pool_query_context.c | 8 +--
src/include/pcp/libpcp_ext.h | 8 ++-
src/include/pool.h | 11 ++--
src/include/protocol/pool_process_query.h | 4 +-
src/include/protocol/pool_proto_modules.h | 3 +-
src/protocol/child.c | 70 +++++++++++++++++--------
src/protocol/pool_process_query.c | 39 ++++++++------
src/protocol/pool_proto_modules.c | 2 +-
src/rewrite/pool_lobj.c | 4 +-
10 files changed, 151 insertions(+), 83 deletions(-)

Browse pgpool-committers by date

  From Date Subject
Next Message Taiki Koshino 2025-07-16 05:21:45 pgpool: Doc: Fix example script link at V4_2.
Previous Message Tatsuo Ishii 2025-07-15 02:10:24 pgpool: Fix bug with pcp_proc_info.