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 <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/flat/505e76cb-0ca2-4e22-ba0f-772b5dc3f230%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b63443718a4a3a50304610e6ccda93bbfa06a1e6

Modified Files
--------------
src/include/libpq/pqcomm.h       | 3 +--
src/interfaces/libpq/fe-cancel.c | 4 ++--
src/tools/pgindent/typedefs.list | 1 -
3 files changed, 3 insertions(+), 5 deletions(-)

Reply via email to