Use PqMsg_* macros in basebackup_copy.c

Started by Fabrízio de Royes Mello8 months ago3 messages
Jump to latest
#1Fabrízio de Royes Mello
fabriziomello@gmail.com

Attached patch for $SUBJECT.

--
Fabrízio de Royes Mello

Attachments:

0001-Use-PqMsg_-macros-in-basebackup_copy.c.patchtext/x-patch; charset=US-ASCII; name=0001-Use-PqMsg_-macros-in-basebackup_copy.c.patchDownload+2-3
#2Nathan Bossart
nathandbossart@gmail.com
In reply to: Fabrízio de Royes Mello (#1)
Re: Use PqMsg_* macros in basebackup_copy.c

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]/messages/by-id/aIOW5_jI8YaBuBo0@nathan? 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]/messages/by-id/aIOW5_jI8YaBuBo0@nathan = '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]: /messages/by-id/aIOW5_jI8YaBuBo0@nathan

--
nathan

#3Fabrízio de Royes Mello
fabriziomello@gmail.com
In reply to: Nathan Bossart (#2)
Re: Use PqMsg_* macros in basebackup_copy.c

On Fri, Jul 25, 2025 at 12:34 PM Nathan Bossart <nathandbossart@gmail.com>
wrote:

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:

Absolutely

./basebackup_copy.c:146: mysink->msgbuffer[0] = 'd'; /* archive or

manifest data */

Missed that one.

./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 */

Was doing a separate patch but agreed to do everything in the same
thread/patch.

Regards,

--
Fabrízio de Royes Mello