Expand usage of macros for protocol characters.
authorNathan Bossart <[email protected]>
Wed, 6 Aug 2025 18:37:00 +0000 (13:37 -0500)
committerNathan Bossart <[email protected]>
Wed, 6 Aug 2025 18:37:00 +0000 (13:37 -0500)
commit9ea3b6f751abd7701f3f32d9df26d66410754c94
tree8e1c43380a51e6ac7efcc46046ea0936e7106ea2
parent35baa60cc7f374401f06c7dc422e93bcf31b942b
Expand usage of macros for protocol characters.

This commit makes use of the existing PqMsg_* macros in more places
and adds new PqReplMsg_* and PqBackupMsg_* macros for use in
special replication and backup messages, respectively.

Author: Dave Cramer <[email protected]>
Co-authored-by: Fabrízio de Royes Mello <[email protected]>
Reviewed-by: Jacob Champion <[email protected]>
Reviewed-by: Álvaro Herrera <[email protected]>
Reviewed-by: Euler Taveira <[email protected]>
Discussion: https://postgr.es/m/aIECfYfevCUpenBT@nathan
Discussion: https://postgr.es/m/CAFcNs%2Br73NOUb7%2BqKrV4HHEki02CS96Z%2Bx19WaFgE087BWwEng%40mail.gmail.com
src/backend/backup/basebackup_copy.c
src/backend/replication/logical/applyparallelworker.c
src/backend/replication/logical/worker.c
src/backend/replication/walreceiver.c
src/backend/replication/walsender.c
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_basebackup/receivelog.c
src/include/libpq/protocol.h