Use more mundane 'int' type for cancel key lengths in libpq
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 8 May 2025 19:01:20 +0000 (22:01 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 8 May 2025 19:01:20 +0000 (22:01 +0300)
commit965213d9c56a671086525a65f5427653b4a66350
tree224e46befccd3fe88356e87ae27460014642bf67
parent9d710a1ac0912244934277a99fe4666df3d2b825
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
src/interfaces/libpq/fe-protocol3.c
src/interfaces/libpq/libpq-int.h