pgpool: Feature: implement NegotiateProtocolVersion message.

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgpool-committers(at)lists(dot)postgresql(dot)org
Subject: pgpool: Feature: implement NegotiateProtocolVersion message.
Date: 2025-07-10 10:35:51
Message-ID: E1uZod4-009y2x-2L@gothos.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-committers

Feature: implement NegotiateProtocolVersion message.

Implementing the message is necessary when frontend requests the
protocol version 3.2 (i.e. PostgreSQL 18+ or compatible clients),
while backend still only supports 3.0 (i.e. backend is PostgreSQL 17
or before).

This commit handles the message so that the message is forwarded from
backend to frontend when there's no connection cache exists.

If connection cache exists, pgpool sends the message, which has been
saved at the time when the connection cache was created, to frontend.

Note that the frontend/backend protocol 3.2 changes the BackendKeyData
message format, but it's not implemented in this commit yet. This
means that still pgpool cannot handle 3.2 protocol.

Discussion: https://www.postgresql.org/message-id/20250708.112133.1324153277751075866.ishii%40postgresql.org

Branch
------
master

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

Modified Files
--------------
src/auth/pool_auth.c | 116 ++++++++++++++++++++++++++++++++++--
src/include/pool.h | 48 ++++++++++++++-
src/protocol/child.c | 4 +-
src/protocol/pool_connection_pool.c | 4 +-
4 files changed, 164 insertions(+), 8 deletions(-)

Browse pgpool-committers by date

  From Date Subject
Next Message Tatsuo Ishii 2025-07-11 01:57:53 pgpool: Import pgindent.
Previous Message Bo Peng 2025-06-30 03:03:56 pgpool: Fix broken scram-sha-256 authentication on big-endian machies.