RE: Fix of fake unlogged LSN initialization
tsunakawa.takay@fujitsu.com <tsunakawa.takay@fujitsu.com>
From: "tsunakawa.takay@fujitsu.com" <tsunakawa.takay@fujitsu.com>
To: 'Dilip Kumar' <dilipbalaut@gmail.com>
Cc: "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2019-10-25T02:11:55Z
Lists: 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
Commits
-
Fix initialization of fake LSN for unlogged relations
- 9f0172bba750 12.1 landed
- 51970fa8df9b 13.0 landed