pgsql: Use more mundane 'int' type for cancel key lengths in libpq

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use more mundane 'int' type for cancel key lengths in libpq
Date: 2025-05-08 19:11:02
Message-ID: E1uD6e6-000omM-1h@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2025-05-08 19:11:07 Re: pgsql: Make cancel request keys longer
Previous Message Bruce Momjian 2025-05-08 15:11:33 pgsql: PG 18 relnotes: adjust RETURNING new/old item