Remove MsgType type
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2025-12-27T22:46:28Z
Releases:
19 (unreleased)
Remove MsgType type Presumably, the C type MsgType was meant to hold the protocol message type in the pre-version-3 era, but this was never fully developed even then, and the name is pretty confusing nowadays. It has only one vestigial use for cancel requests that we can get rid of. Since a cancel request is indicated by a special protocol version number, we can use the ProtocolVersion type, which MsgType was based on. Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/505e76cb-0ca2-4e22-ba0f-772b5dc3f230%40eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/include/libpq/pqcomm.h | modified | +1 −2 |
| src/interfaces/libpq/fe-cancel.c | modified | +2 −2 |
| src/tools/pgindent/typedefs.list | modified | +0 −1 |
Discussion
- Remove MsgType type 3 messages · 2025-12-22 → 2025-12-27