Re: Make query cancellation keys longer

Heikki Linnakangas <hlinnaka@iki.fi>

From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Jelte Fennema-Nio <postgres@jeltef.nl>, Robert Haas <robertmhaas@gmail.com>, Jacob Champion <jacob.champion@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Thomas Munro <thomas.munro@gmail.com>
Date: 2025-04-03T11:33:13Z
Lists: pgsql-hackers
On 03/04/2025 14:29, Daniel Gustafsson wrote:
>> On 2 Apr 2025, at 15:48, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> 
>> And committed, with minor a bunch more little cleanups.
> 
> 0001 in commit 09be39112654 seems to have missed (omitted?) adding the HAVE_
> macros to pg_config.h.in, which doesn't matter as of now since they're not used
> but it will be in the way for anyone running autoheader.  Any objection to me
> pushing the attached?

Sounds good, thanks!

-- 
Heikki Linnakangas
Neon (https://neon.tech)



Commits

  1. Add timingsafe_bcmp(), for constant-time memory comparison

  2. Add missing declarations to pg_config.h.in

  3. docs: Add a new section and a table listing protocol versions

  4. Make cancel request keys longer

  5. libpq: Add min/max_protocol_version connection options

  6. libpq: Handle NegotiateProtocolVersion message differently

  7. docs: Update phrase on message lengths in the protocol

  8. libpq: Trace all NegotiateProtocolVersion fields

  9. libpq: Add PQfullProtocolVersion to exports.txt

  10. Move cancel key generation to after forking the backend