Re: pgsql: libpq: Grease the protocol by default

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jacob Champion <jacob.champion@enterprisedb.com>
Cc: Jelte Fennema-Nio <postgres@jeltef.nl>, pgsql-hackers@lists.postgresql.org, Andrew Dunstan <andrew@dunslane.net>, Nathan Bossart <nathandbossart@gmail.com>
Date: 2026-02-24T20:40:38Z
Lists: pgsql-hackers
Jacob Champion <jacob.champion@enterprisedb.com> writes:
> Okay, here are the patches I propose. The ones for 18-HEAD check for
> PG10 and below, and 14-17 additionally check that libpq >= 18, before
> adding max_protocol_version=3.0.

These look sane to me.  I might suggest a small wording change in
the <= 17 patches:

-	 * Back-branch-specific complication: for libpq versions prior to PG18,
+	 * Back-branch-specific complication: in libpq versions prior to PG18,

but it probably isn't worth the trouble to edit four separate patches.

			regards, tom lane



Commits

  1. pg_upgrade: Use max_protocol_version=3.0 for older servers

  2. libpq: Grease the protocol by default

  3. libpq: Prepare for protocol grease during 19beta