Re: Add backup_type to pg_stat_progress_basebackup

From: Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>
To: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Cc: Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add backup_type to pg_stat_progress_basebackup
Date: 2025-08-06 00:15:21
Message-ID: CAOzEurT3dwqTJuHMpkTb=hHmq5GrUOHmFG11ZHsEvockOaKCwQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Aug 6, 2025 at 3:06 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
>
> On Mon, Aug 4, 2025 at 1:57 AM Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp> wrote:
> >
> > On Fri, 1 Aug 2025 16:12:15 -0700
> > Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
> >
> > > The patch seems reasonably simple and looks good to me. I've updated
> > > the comment in bbsink_progress_new() and attached the modified version
> > > patch (with the commit message). Please review it.
> >
> > /*
> > - * Report that a base backup is in progress, and set the total size of the
> > - * backup to -1, which will get translated to NULL. If we're estimating
> > - * the backup size, we'll insert the real estimate when we have it.
> > + * Report that a base backup is in progress, and set the backup type and
> > + * the total size of the backup to -1, which will get translated to NULL,
> > + * and backup. If we're estimating the backup size, we'll insert the real
> > + * estimate when we have it.
> > */
> >
> > It seems to me that "set the backup type and the total size of the backup to -1"
> > is a bit confusing because it could be read that the backup type would be also set
> > to -1, and the subsequent sentence describes just the total size.
> >
> > Therefore, I think it is better to just add "Also, the backup type is set."
> > (or similar) to the end of the comment block.
> >
> > That said, I'm not a native English speaker, so if no one else sees a problem,
> > I'm fine with it.
>
> Agreed. I've changed the comment and pushed the patch.
>
> Regards,
>
> --
> Masahiko Sawada
> Amazon Web Services: https://aws.amazon.com

Thanks for pushing it!

--
Best regards,
Shinya Kato
NTT OSS Center

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Euler Taveira 2025-08-06 00:18:34 Re: More protocol.h replacements this time into walsender.c
Previous Message Thomas Munro 2025-08-05 23:30:23 Re: index prefetching