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

From tsunakawa.takay@fujitsu.com
Subject RE: Fix of fake unlogged LSN initialization
Date
Msg-id OSBPR01MB2503FF946B01198523EBF6F9FE650@OSBPR01MB2503.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: Fix of fake unlogged LSN initialization  (Dilip Kumar <dilipbalaut@gmail.com>)
Responses Re: Fix of fake unlogged LSN initialization
Re: Fix of fake unlogged LSN initialization
List pgsql-hackers
From: Dilip Kumar <dilipbalaut@gmail.com>
> I have noticed that in StartupXlog also we reset it with 1, you might
> want to fix that as well?
> 
> StartupXLOG
> {
> ...
> /*
> * Initialize unlogged LSN. On a clean shutdown, it's restored from the
> * control file. On recovery, all unlogged relations are blown away, so
> * the unlogged LSN counter can be reset too.
> */
> if (ControlFile->state == DB_SHUTDOWNED)
> XLogCtl->unloggedLSN = ControlFile->unloggedLSN;
> else
> XLogCtl->unloggedLSN = 1;
> 

Thanks for taking a look.  I'm afraid my patch includes the fix for this part.


Regards
Takayuki Tsunakawa


pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [HACKERS] Block level parallel vacuum
Next
From: Amit Kapila
Date:
Subject: Re: [HACKERS] Block level parallel vacuum