Re: pg_resetwal tests, logging, and docs update
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: Aleksander Alekseev <aleksander@timescale.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-09-13T18:34:42Z
Lists: pgsql-hackers
On 13.09.23 16:36, Aleksander Alekseev wrote: > ``` > + // FIXME: why 2? > if (set_oldest_commit_ts_xid < 2 && > ``` > > Should we rewrite this to < FrozenTransactionId ? That's what I suspect, but we should confirm that. > > ``` > +$mult = 32 * $blcksz * 4; # FIXME > ``` > > Unless I'm missing something this $mult value is not used. Is it > really needed here? The FIXME is that I think a multiplier *should* be applied somehow. See also the FIXME in the documentation for the -c option.
Commits
-
doc: pg_resetwal: Add comments how the multipliers are derived
- 6ceec8a1fe7a 17.0 landed
-
pg_resetwal: Add more tests and test coverage
- 7b5275eec3a5 17.0 landed
-
More consistent behavior of GetDataDirectoryCreatePerm on Windows
- 2c7c6c417fe6 17.0 landed
-
doc: Improve documentation about pg_resetwal -f option
- 5f1b00e64aee 17.0 landed
-
pg_resetwal: Use frontend logging API
- a11d8e10f226 17.0 landed
-
pg_resetwal: Regroup --help output
- b5da1b3a939a 17.0 landed
-
pg_resetwal: Improve error with wrong/missing data directory
- 1d863c250461 17.0 landed
-
pg_resetwal: Update an obsolete comment
- 7273945cafa7 17.0 landed