Re: Fix GetWALAvailability function code comments for WALAVAIL_REMOVED return value

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: sirichamarthi22(at)gmail(dot)com, bharath(dot)rupireddyforpostgres(at)gmail(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Fix GetWALAvailability function code comments for WALAVAIL_REMOVED return value
Date: 2023-01-24 00:47:47
Message-ID: 20230124.094747.1325518642290848983.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At Thu, 19 Jan 2023 18:43:52 -0500, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote in
> sirisha chamarthi <sirichamarthi22(at)gmail(dot)com> writes:
> > On Wed, Oct 19, 2022 at 7:59 PM Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
> > wrote:
> >> In short, the proposed fix alone seems fine to me. If we want to show
> >> further details, I would add a bit as follows.
> >>
> >> | * * WALAVAIL_REMOVED means it has been removed. A replication stream on
> >> | * a slot with this LSN cannot continue. Note that the affected
> >> | * processes have been terminated by checkpointer, too.
>
> > Thanks for your comments! Attached the patch with your suggestions.
>
> Pushed with a bit of additional wordsmithing. I thought "have been"

Thanks!

> was a bit too strong of an assertion considering that this function
> does not pay any attention to the actual state of any processes,
> so I made it say "should have been".

I think you're correct here.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2023-01-24 01:00:33 Re: Monotonic WindowFunc support for ntile(), percent_rank() and cume_dist()
Previous Message Ranier Vilela 2023-01-24 00:46:49 Re: Non-decimal integer literals