]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove MsgType type
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 27 Dec 2025 21:50:46 +0000 (22:50 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 27 Dec 2025 22:46:28 +0000 (23:46 +0100)
commitb63443718a4a3a50304610e6ccda93bbfa06a1e6
tree39c9e73604cc871244435b98dca7cbe0570d305c
parentec0da9b89377960553a3d9054ec79c0512742275
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
src/include/libpq/pqcomm.h
src/interfaces/libpq/fe-cancel.c
src/tools/pgindent/typedefs.list