Re: BackendKeyData is mandatory?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "David G. Johnston" <david.g.johnston@gmail.com>
Cc: Tatsuo Ishii <ishii@postgresql.org>, "hlinnaka@iki.fi" <hlinnaka@iki.fi>,
"peter@eisentraut.org" <peter@eisentraut.org>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2025-06-19T15:29:55Z
Lists: pgsql-hackers
"David G. Johnston" <david.g.johnston@gmail.com> writes: > At this point why does it matter what the docs says? Yeah, I cannot get excited about changing this. The current protocol spec accurately documents what we do. It is not incumbent on us to document what non-Postgres implementations of this protocol could hypothetically do --- especially when we're just guessing in a vacuum as to whether this second-hand-reported behavior is intentional or a bug. There's an argument based on the ancient principle of "be conservative in what you send and liberal in what you accept" that Pgpool ought to survive not getting BackendKeyData, or at least not complain until such time as it's asked to send a query cancel. But that principle is not about what it says in the protocol spec. regards, tom lane
Commits
-
Revert unnecessary check for NULL
- 5a26a3e4eeb2 18.0 landed
- 807ee417e562 19 (unreleased) landed
-
libpq: Be strict about cancel key lengths
- e7ff96853ea7 18.0 landed
- e411a8d25a4b 19 (unreleased) landed
-
libpq: Handle OOM by disconnecting instead of hanging or skipping msgs
- 8aa287c9061b 18.0 landed
- f6f0542266f0 19 (unreleased) landed
-
libpq: Complain about missing BackendKeyData later with PGgetCancel()
- 42b1480eb2c6 18.0 landed
- a4801eb691ed 19 (unreleased) landed