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 OSBPR01MB250302CBBABD633900DC1715FE650@OSBPR01MB2503.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: Fix of fake unlogged LSN initialization  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
From: Simon Riggs <simon@2ndquadrant.com>
>     From xlogdefs.h added by 9155580:
>     /*
>      * First LSN to use for "fake" LSNs.
>      *
>      * Values smaller than this can be used for special per-AM purposes.
>      */
>     #define FirstNormalUnloggedLSN  ((XLogRecPtr) 1000)

Yeah, I had seen it, but I didn't understand what kind of usage is assumed.


> I wonder why is that value 1000, rather than an aligned value or a whole WAL
> page?

I think that's because this fake LSN is not associated with the physical position of WAL records.


Regards
Takayuki Tsunakawa



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Duplicate Workers entries in some EXPLAIN plans
Next
From: Amit Kapila
Date:
Subject: Re: [HACKERS] Block level parallel vacuum