Re: Use PqMsg_* macros in basebackup_copy.c - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Use PqMsg_* macros in basebackup_copy.c
Date
Msg-id aIOkE7fgvFOu0FI_@nathan
Whole thread Raw
In response to Use PqMsg_* macros in basebackup_copy.c  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
Responses Re: Use PqMsg_* macros in basebackup_copy.c
List pgsql-hackers
On Fri, Jul 25, 2025 at 11:47:52AM -0300, Fabrízio de Royes Mello wrote:
> Attached patch for $SUBJECT.

Could we move this to the existing thread on the topic [0]?  I see one more
CopyData character in this file, plus some others that probably need their
own characters in protocol.h:

./basebackup_copy.c:146:    mysink->msgbuffer[0] = 'd'; /* archive or manifest data */
./basebackup_copy.c:173:    pq_sendbyte(&buf, 'n');        /* New archive */
./basebackup_copy.c:224:            pq_sendbyte(&buf, 'p'); /* Progress report */
./basebackup_copy.c:250:    pq_sendbyte(&buf, 'p');        /* Progress report */
./basebackup_copy.c:265:    pq_sendbyte(&buf, 'm');        /* Manifest */

[0] https://postgr.es/m/aIOW5_jI8YaBuBo0%40nathan

-- 
nathan



pgsql-hackers by date:

Previous
From: Paul A Jungwirth
Date:
Subject: Re: PoC: adding CustomJoin, separate from CustomScan
Next
From: Alexander Korotkov
Date:
Subject: Re: Proposal: Limitations of palloc inside checkpointer