Re: Use XLogFromFileName() in pg_resetwal to parse position from WAL file
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: bharath.rupireddyforpostgres@gmail.com, pgsql-hackers@lists.postgresql.org
Date: 2022-10-04T06:28:53Z
Lists: pgsql-hackers
On Tue, Oct 04, 2022 at 03:17:06PM +0900, Kyotaro Horiguchi wrote: > Nice finding. I found a few '%08X%08X's but they don't seem to fit > similar fix. Nice cleanup. > Couldn't we use XLByteToSeg() here? > > Other than that, it looks good to me. Yep. It looks that you're right here. -- Michael
Commits
-
Use macros from xlog_internal.h for WAL segment logic in pg_resetwal
- 9a30e154b35e 16.0 landed
-
Make WAL segment size configurable at initdb time.
- fc49e24fa69a 11.0 cited