pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Expand usage of macros for protocol characters.
Date: Wed, 06 Aug 2025 18:37:28 +0000
Message-ID: <E1ujj0x-0015ae-1g@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9ea3b6f751abd7701f3f32d9df26d66410754c94

Modified Files
--------------
src/backend/backup/basebackup_copy.c               | 14 ++++++------
.../replication/logical/applyparallelworker.c      |  4 ++--
src/backend/replication/logical/worker.c           | 10 ++++-----
src/backend/replication/walreceiver.c              |  8 +++----
src/backend/replication/walsender.c                | 25 ++++++++++++----------
src/bin/pg_basebackup/pg_basebackup.c              |  9 ++++----
src/bin/pg_basebackup/pg_recvlogical.c             | 11 +++++-----
src/bin/pg_basebackup/receivelog.c                 | 11 +++++-----
src/include/libpq/protocol.h                       | 21 ++++++++++++++++++
9 files changed, 70 insertions(+), 43 deletions(-)



Message-ID: <E1ujj0x-0015ae-1g@gemulon.postgresql.org>
Permalink:  ../E1ujj0x-0015ae-1g@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ujj0x-0015ae-1g@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Expand usage of macros for protocol characters.
  In-Reply-To: <E1ujj0x-0015ae-1g@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox