From: | Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> |
---|---|
To: | masao(dot)fujii(at)oss(dot)nttdata(dot)com |
Cc: | torikoshia(at)oss(dot)nttdata(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Modifying data type of slot_keep_segs from XLogRecPtr to XLogSegNo |
Date: | 2020-07-09 04:12:49 |
Message-ID: | 20200709.131249.450754168768622864.horikyota.ntt@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
At Wed, 8 Jul 2020 21:27:04 +0900, Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com> wrote in
>
>
> On 2020/07/08 15:22, Fujii Masao wrote:
> > On 2020/07/08 11:55, torikoshia wrote:
> >> On 2020-07-08 11:15, Fujii Masao wrote:
> >>> On 2020/07/08 11:02, torikoshia wrote:
> >>>> Hi,
> >>>>
> >>>> Currently, slot_keep_segs is defined as "XLogRecPtr" in KeepLogSeg(),
> >>>> but it seems that should be "XLogSegNo" because this variable is
> >>>> segment number.
> >>>>
> >>>> How do you think?
Yeah, that's my mistake while made bouncing back and forth between
segments and LSN in the code. I noticed that once but forgotten until
now. Thanks for finding it.
> >>> I agree that using XLogRecPtr for slot_keep_segs is incorrect.
> >>> But this variable indicates the number of segments rather than
> >>> segment no, uint64 seems better. Thought?
> >>
> >> That makes sense.
> >> The number of segments and segment number are different.
> > Yes, so patch attached. I will commit it later.
>
> Pushed. Thanks!
Thanks!
--
Kyotaro Horiguchi
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Juan José Santamaría Flecha | 2020-07-09 04:25:10 | Re: TAP tests and symlinks on Windows |
Previous Message | vignesh C | 2020-07-09 04:06:40 | Re: pgsql-hackers archive broken? |