Re: libpq: Bump protocol version to version 3.2 at least until the first/second beta
Jelte Fennema <postgres@jeltef.nl>
From: Jelte Fennema-Nio <postgres@jeltef.nl>
To: Jacob Champion <jacob.champion@enterprisedb.com>
Cc: "David G. Johnston" <david.g.johnston@gmail.com>,
Andres Freund <andres@anarazel.de>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Heikki Linnakangas <hlinnaka@iki.fi>, Robert Haas <robertmhaas@gmail.com>
Date: 2026-02-09T23:55:56Z
Lists: pgsql-hackers
On Fri, Feb 6, 2026, 23:39 Jacob Champion <jacob.champion@enterprisedb.com> wrote: > > Committed that way, along with v6-0002. > Nice! That just leaves the last TODO, which is guiding users towards a > resolution. First attempt at that is attached as v7: > - v7-0001 is the same as v6-0003 with an updated commit message. > - v7-0002 is a squash! commit that prints a quick explanation and a > link to our documentation for all grease-related libpq errors. > > At the moment, that link is > > https://www.postgresql.org/docs/devel/libpq-connect.html#LIBPQ-CONNECT-MAX-PROTOCOL-VERSION > which will contain a <note> on grease when this is committed. > > I'd still prefer that this link go to a wiki page, but in case I can't > get agreement on that, or there's some technical reason why protecting > the page wouldn't work out the way I'd hoped, or it just takes a long > time, this seems better than nothing. Switching out the URL in a later > commit shouldn't be an issue. > > WDYT? > Looks like a good improvement. As said before I'm fine with either location for the URL. > I'm wondering if we should be a bit more liberal in showing this error explanation, since I expect most servers to throw an error rather than send an incorrect negotiation. e.g. We could report it on hard connection closures. Or if there is "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) >
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
libpq: Grease the protocol by default
- 4966bd3ed95e 19 (unreleased) landed
-
libpq: Prepare for protocol grease during 19beta
- d8d7c5dc8f74 19 (unreleased) landed
-
doc: Expand upon protocol versions and extensions
- e3d37853ecd5 19 (unreleased) landed
-
libpq_pipeline: Test the default protocol version
- 9b9eaf08ab2d 19 (unreleased) landed