Re: Modifying data type of slot_keep_segs from XLogRecPtr to XLogSegNo - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Modifying data type of slot_keep_segs from XLogRecPtr to XLogSegNo
Date
Msg-id ddde0b18-bf6c-5744-b61b-709fd1e23d35@oss.nttdata.com
Whole thread Raw
In response to Re: Modifying data type of slot_keep_segs from XLogRecPtr to XLogSegNo  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: Modifying data type of slot_keep_segs from XLogRecPtr to XLogSegNo  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
List pgsql-hackers

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?
>>>
>>> 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!

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION



pgsql-hackers by date:

Previous
From: Rémi Lapeyre
Date:
Subject: [PATCH v2] Allow COPY "text" to output a header and add header matching mode to COPY FROM
Next
From: Amit Kapila
Date:
Subject: Re: Global snapshots