Re: pgsql: libpq: Grease the protocol by default

Jacob Champion <jacob.champion@enterprisedb.com>

From: Jacob Champion <jacob.champion@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jelte Fennema-Nio <postgres@jeltef.nl>, pgsql-hackers@lists.postgresql.org, Andrew Dunstan <andrew@dunslane.net>
Date: 2026-02-23T23:41:46Z
Lists: pgsql-hackers

Attachments

On Mon, Feb 23, 2026 at 3:34 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > So a fix belongs in pg_upgrade, IMO, instead of the test. I have a
> > draft passing locally that I should be able to share soon.
>
> Fair enough.

Something like the attached (tested only against 9.2 so far)? I would
plan to backpatch after feature freeze is lifted.

--Jacob

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