RE: Fix of fake unlogged LSN initialization

Поиск
Список
Период
Сортировка
От tsunakawa.takay@fujitsu.com
Тема RE: Fix of fake unlogged LSN initialization
Дата
Msg-id OSBPR01MB250302CBBABD633900DC1715FE650@OSBPR01MB2503.jpnprd01.prod.outlook.com
обсуждение исходный текст
Ответ на Re: Fix of fake unlogged LSN initialization  (Simon Riggs <simon@2ndquadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Duplicate Workers entries in some EXPLAIN plans
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: [HACKERS] Block level parallel vacuum