Re: pgsql: libpq: Grease the protocol by default - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: pgsql: libpq: Grease the protocol by default
Date
Msg-id CAOYmi+mFbpQ50KjV48-M0YarZjHDLEXXtqhzy-BuXseRPU5D9Q@mail.gmail.com
Whole thread
In response to Re: pgsql: libpq: Grease the protocol by default  (Jacob Champion <jacob.champion@enterprisedb.com>)
Responses Re: pgsql: libpq: Grease the protocol by default
List pgsql-hackers
On Tue, Feb 24, 2026 at 10:58 AM Jacob Champion
<jacob.champion@enterprisedb.com> wrote:
> We do store (the major version part of) `pg_ctl --version` at some
> point, which we could improve upon, but I agree that adding additional
> complexity here doesn't actually give us any benefit.

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.

I smoke-tested upgrades from 9.2, 10.1, and 11.0 for all six branches,
and then re-ran that test matrix with pg_upgrade linked against a
greased libpq.

--Jacob

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Wrong results with grouping sets
Next
From: Tom Lane
Date:
Subject: Re: pgsql: libpq: Grease the protocol by default