]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Expand usage of macros for protocol characters.
authorNathan Bossart <nathan@postgresql.org>
Wed, 6 Aug 2025 18:37:00 +0000 (13:37 -0500)
committerNathan Bossart <nathan@postgresql.org>
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 <davecramer@gmail.com>
Co-authored-by: Fabrízio de Royes Mello <fabriziomello@gmail.com>
Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Reviewed-by: Euler Taveira <euler@eulerto.com>
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