Re: Use PqMsg_* macros in basebackup_copy.c

From: Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Use PqMsg_* macros in basebackup_copy.c
Date: 2025-07-25 17:06:12
Message-ID: CAFcNs+pY+u2q_uDf63S1+8JWSz5JGcc3q2irFM9Gi49Q0X=pCg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jul 25, 2025 at 12:34 PM Nathan Bossart <nathandbossart(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2025-07-25 17:40:10 Re: Parallel heap vacuum
Previous Message Tom Lane 2025-07-25 16:51:12 Re: track generic and custom plans in pg_stat_statements