From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use more mundane 'int' type for cancel key lengths in libpq
Date: Thu, 08 May 2025 19:11:02 +0000
Message-ID: <E1uD6e6-000omM-1h@gemulon.postgresql.org> (raw)
Use more mundane 'int' type for cancel key lengths in libpq
The documented max length of a cancel key is 256 bytes, so it fits in
uint8. It nevertheless seems weird to not just use 'int', like in
commit 0f1433f053 for the backend.
Discussion: https://www.postgresql.org/message-id/61be9e31-7b7d-49d5-bc11-721800d89d64%40eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/965213d9c56a671086525a65f5427653b4a66350
Modified Files
--------------
src/interfaces/libpq/fe-protocol3.c | 2 +-
src/interfaces/libpq/libpq-int.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Use more mundane 'int' type for cancel key lengths in libpq
In-Reply-To: <E1uD6e6-000omM-1h@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox