Fix of fake unlogged LSN initialization - Mailing list pgsql-hackers

From tsunakawa.takay@fujitsu.com
Subject Fix of fake unlogged LSN initialization
Date
Msg-id OSBPR01MB2503CE851940C17DE44AE3D9FE6F0@OSBPR01MB2503.jpnprd01.prod.outlook.com
Whole thread Raw
Responses Re: Fix of fake unlogged LSN initialization
Re: Fix of fake unlogged LSN initialization
List pgsql-hackers
Hello,


The attached trivial patch fixes the initialization of the fake unlogged LSN.  Currently, BootstrapXLOG() in initdb
setsthe initial fake unlogged LSN to FirstNormalUnloggedLSN (=1000), but the recovery and pg_resetwal sets it to 1.
Thepatch modifies the latter two cases to match initdb. 

I don't know if this do actual harm, because the description of FirstNormalUnloggedLSN doesn't give me any idea.


Regards
Takayuki Tsunakawa




Attachment

pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: Backport "WITH ... AS MATERIALIZED" syntax to <12?
Next
From: Etsuro Fujita
Date:
Subject: Re: Obsolete comment in partbounds.c