On Tue, Aug 20, 2024 at 8:24 AM Heikki Linnakangas <hlinn...@iki.fi> wrote: > > Put another way: for a middlebox on the connection (which may be > > passively observing, but also maybe actively adding new messages to > > the stream), what is guaranteed to remain the same in the protocol > > across a minor version bump? Hopefully the answer isn't "nothing"? > > I don't think we can give any future guarantees like that. If you have a > middlebox on the connection, it needs to fully understand all the > protocol versions it supports.
(GMail has catastrophically unthreaded this conversation for me, so apologies if I start responding out of order) Many protocols provide the list of assumptions that intermediates are allowed to make within a single group of compatible versions, even as the protocol gets extended. If we choose to provide those, then our "major version" gains really useful semantics. See also the brief "criticality" tangent upthread. > That seems a bit tangential to the PQprotocolVersion() function though. > A middlebox like that would probably not use libpq. It's applicable to the use case I was talking about with Jelte. A libpq client dropping down to the socket level is relying on (implicit, currently undocumented/undecided, possibly incorrect!) intermediary guarantees that the protocol provides for a major version. I'm hoping we can provide some, since we haven't broken anything yet. If we decide we can't, then so be it -- things will break either way -- but it's still strange to me that we'd be okay with literally zero forward compatibility and still call that a "minor version". --Jacob