From: Tatsuo Ishii <ishii@postgresql.org>
To: pgpool-committers@lists.postgresql.org
Subject: pgpool: Fix handling of negotiate protocol version message.
Date: Wed, 18 Nov 2026 02:43:46 +0000
Message-ID: <E1xTVeC-0000000CpEM-3m3f@gothos.postgresql.org> (raw)
Fix handling of negotiate protocol version message.
ProcessNegotiateProtocol() saves NegotiateProtocolVersion message in a
Startup packet (sp->negotiateProtocolMsg) when initial connection to
backend is established. Unfortunately there was a bug with it.
Actually part of the message (unsupported optional messages) was not
saved. This prevented reusing the connection if frontend actually
checks unsupported optional messages are in the NegotiateProtocol
message.
This was discovered in PostgreSQL 19 beta while "greasing".
https://www.postgresql.org/message-id/DDZ539Z6JWSB.1BF62QDLBANQA%40jeltef.nl
This commit is a back port of commit on the master branch:
7bcb55898a9a1fbac39dcecf5c9762f38213237f
It was accidently forgot to port to 4.7. Since v4.7 we support the
NegotiateProtocolVersion message.
Branch
------
V4_7_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=7bc9624bfe1d752cb32bce592704b17b2204e...
Modified Files
--------------
src/auth/pool_auth.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgpool-committers@postgresql.org
Cc: ishii@postgresql.org
Subject: Re: pgpool: Fix handling of negotiate protocol version message.
In-Reply-To: <E1xTVeC-0000000CpEM-3m3f@gothos.postgresql.org>
References: <E1xTVeC-0000000CpEM-3m3f@gothos.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox