From a99cc6c6b4bf083d72fb1e8adfb665a449b7a37f Mon Sep 17 00:00:00 2001 From: Nathan Bossart Date: Wed, 17 Jul 2024 10:51:00 -0500 Subject: Use PqMsg_* macros in more places. Commit f4b54e1ed9, which introduced macros for protocol characters, missed updating a few places. It also did not introduce macros for messages sent from parallel workers to their leader processes. This commit adds a new section in protocol.h for those. Author: Aleksander Alekseev Discussion: https://postgr.es/m/CAJ7c6TNTd09AZq8tGaHS3LDyH_CCnpv0oOz2wN1dGe8zekxrdQ%40mail.gmail.com Backpatch-through: 17 --- src/backend/replication/walsender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/replication') diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index 2d1a9ec900f..ca205594bd0 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -695,7 +695,7 @@ UploadManifest(void) ib = CreateIncrementalBackupInfo(mcxt); /* Send a CopyInResponse message */ - pq_beginmessage(&buf, 'G'); + pq_beginmessage(&buf, PqMsg_CopyInResponse); pq_sendbyte(&buf, 0); pq_sendint16(&buf, 0); pq_endmessage_reuse(&buf); -- cgit v1.2.3