Re: archive status ".ready" files may be created too early - Mailing list pgsql-hackers

From Kyotaro Horiguchi
Subject Re: archive status ".ready" files may be created too early
Date
Msg-id 20210805.130420.22317944693814351.horikyota.ntt@gmail.com
Whole thread Raw
In response to Re: archive status ".ready" files may be created too early  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Responses Re: archive status ".ready" files may be created too early
List pgsql-hackers
By the way about the v3 patch,

+#define InvalidXLogSegNo    ((XLogSegNo) 0xFFFFFFFFFFFFFFFF)

Like InvalidXLogRecPtr, the first valid segment number is 1 so we can
use 0 as InvalidXLogSegNo.

BootStrapXLOG():
    /* Create first XLOG segment file */
    openLogFile = XLogFileInit(1);

KeepLogSeg():
            /* avoid underflow, don't go below 1 */
            if (currSegNo <= keep_segs)
                segno = 1;

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: Yugo NAGATA
Date:
Subject: Re: Implementing Incremental View Maintenance
Next
From: Greg Stark
Date:
Subject: Re: Sort keys are omitted incorrectly after grouping sets