PSA: Planning to grease protocol connections during 19beta

From: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Subject: PSA: Planning to grease protocol connections during 19beta
Date: 2025-12-10 01:16:11
Message-ID: CAOYmi+kqt_gn-wvUjJG1j3MM4LDDsRMURSPz2eMxfABu0iGtpw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I want to make sure this doesn't take anyone by surprise: I'm planning
to get Jelte's "grease" patch into shape for a commit some time in
January.

https://commitfest.postgresql.org/patch/6157/

If you're unfamiliar with the concept of greasing [1], one way to
think of it is that we're inverting Postel's Law: we will be very
liberal in what we send during connection, and then fail the
connection outright if a server doesn't reply with a
NegotiateProtocolVersion that points out our nonsense. This helps
build confidence that a future bump in our protocol defaults won't
cause operational failures due to buggy implementations (proxies,
bouncers, other servers).

The plan is to grease the minor version number and at least one
protocol extension during the 19 beta, then revert partway through (as
tracked by a mid-beta Open Item). Users who run into trouble during
beta can revert to the previous behavior by setting
max_protocol_version=3.0, ideally *after* they file a bug report for
the peer implementation. Documenting that, in a way that's effective
for both users and implementers, is something that still needs work
for the current patchset.

So, if anyone has objections to the overall idea, now is a great time
to say so. (Here is fine, but preferably also on the patch thread for
posterity.)

Thanks!
--Jacob

[1] https://datatracker.ietf.org/doc/draft-edm-protocol-greasing/

Browse pgsql-hackers by date

  From Date Subject
Next Message Xuneng Zhou 2025-12-10 01:55:26 Re: Fix a minor typo in the comment of read_stream_start_pending
Previous Message Shinya Kato 2025-12-10 01:01:52 Re: Add mode column to pg_stat_progress_vacuum