Re: pgsql: libpq: Grease the protocol by default
Jelte Fennema-Nio <postgres@jeltef.nl>
From: Jelte Fennema-Nio <postgres@jeltef.nl>
To: Jacob Champion <jacob.champion@enterprisedb.com>
Cc: Jacob Champion <jchampion@postgresql.org>,
pgsql-committers@lists.postgresql.org
Date: 2026-02-23T22:24:34Z
Lists: pgsql-hackers
On Mon, 23 Feb 2026 at 22:17, Jacob Champion <jacob.champion@enterprisedb.com> wrote: > So while this is kind of a nice result, in that it's correctly > diagnosing the problem, I need to add max_protocol_version=3.0 to the > connection strings for these upgrades during beta. Two thoughts: 1. I think we might want the "This indicates a bug in either the server being contacted..." note to be added to the error even if you use 3.2/3.3/3.X. It seems pretty helpful in general. It would need a bit fancier detection though, with strings to search for based on the actual requested version. 2. Why only force max_protocol_version=3.0 for beta? It sounds like this would also be an issue once we eventually bump the default version.
Commits
-
pg_upgrade: Use max_protocol_version=3.0 for older servers
- c47744ede01c 14.23 landed
- e726620d208e 15.18 landed
- a38ed212ff23 16.14 landed
- ad7fc3f1f83f 17.10 landed
- 1b2773179f31 18.4 landed
- a60a103386a1 19 (unreleased) landed
-
libpq: Grease the protocol by default
- 4966bd3ed95e 19 (unreleased) cited
-
libpq: Prepare for protocol grease during 19beta
- d8d7c5dc8f74 19 (unreleased) cited