Expand usage of macros for protocol characters.
Nathan Bossart <nathan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/backup/basebackup_copy.c | modified | +7 −7 |
| src/backend/replication/logical/applyparallelworker.c | modified | +2 −2 |
| src/backend/replication/logical/worker.c | modified | +5 −5 |
| src/backend/replication/walreceiver.c | modified | +4 −4 |
| src/backend/replication/walsender.c | modified | +14 −11 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +5 −4 |
| src/bin/pg_basebackup/pg_recvlogical.c | modified | +6 −5 |
| src/bin/pg_basebackup/receivelog.c | modified | +6 −5 |
| src/include/libpq/protocol.h | modified | +21 −0 |
Discussion
- More protocol.h replacements this time into walsender.c 29 messages · 2025-07-22 → 2025-08-06
- Use PqMsg_* macros in basebackup_copy.c 3 messages · 2025-07-25