Re: libpq: Bump protocol version to version 3.2 at least until the first/second beta - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: libpq: Bump protocol version to version 3.2 at least until the first/second beta
Date
Msg-id CAOYmi+=Hi_on8cGe2TV7DRLbcvVQmrhdkyzOXbhT_6xqf02+4A@mail.gmail.com
Whole thread Raw
In response to Re: libpq: Bump protocol version to version 3.2 at least until the first/second beta  (Jelte Fennema-Nio <postgres@jeltef.nl>)
Responses Re: libpq: Bump protocol version to version 3.2 at least until the first/second beta
List pgsql-hackers
On Mon, Feb 9, 2026 at 3:56 PM Jelte Fennema-Nio <postgres@jeltef.nl> wrote:
> Looks like a good improvement. As said before I'm fine with either location for the URL.

Thanks, squashed in v8.

> I'm wondering if we should be a bit more liberal in showing this error explanation, since I expect most servers to
throwan error rather than send an incorrect negotiation. e.g. We could report it on hard connection closures. Or if
thereis "3.9999" or "version" or "_pq_" in the error message. (the message should then be "this could indicate a bug
in..."because we're not fully certain) 

I think this is a great point, but I don't want to turn a clear signal
of "bug somewhere in the server, investigate now" into "maybe a bug,
probably just work around it". I don't really want anyone to be able
to (correctly) say that you can ignore this message in X case.

I took a look at some old implementation behaviors, and I think that
if a server responds to our startup packet with either a protocol
violation code or the literal grease version number (maybe in decimal,
maybe in other formats) in the error message, that's probably a clear
enough signal that something is wrong with the server. I've
implemented that idea in v8-0002. Maybe "_pq_." would be an okay
marker, too?

Would this patch result in desirable behavior for a legacy pgbouncer deployment?

--Jacob

Attachment

pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Comment for UserMappingPasswordRequired in contrib/postgres_fdw
Next
From: Andreas Karlsson
Date:
Subject: Re: Comment for UserMappingPasswordRequired in contrib/postgres_fdw