Use more mundane 'int' type for cancel key lengths in libpq
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-protocol3.c | modified | +1 −1 |
| src/interfaces/libpq/libpq-int.h | modified | +1 −1 |
Discussion
- pgsql: Make cancel request keys longer 11 messages · 2025-04-02 → 2025-05-23