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-19T14:31:35Z
Lists: pgsql-hackers
Attachments
- v2-0001-pg_resetwal-Update-an-obsolete-comment.patch (text/plain) patch v2-0001
- v2-0002-pg_resetwal-Improve-error-with-wrong-missing-data.patch (text/plain) patch v2-0002
- v2-0003-pg_resetwal-Regroup-help-output.patch (text/plain) patch v2-0003
- v2-0004-pg_resetwal-Use-frontend-logging-API.patch (text/plain) patch v2-0004
- v2-0005-doc-Improve-documentation-about-pg_resetwal-f-opt.patch (text/plain) patch v2-0005
- v2-0006-doc-pg_resetwal-Add-comments-how-the-multipliers-.patch (text/plain) patch v2-0006
- v2-0007-pg_resetwal-Add-more-tests-and-test-coverage.patch (text/plain) patch v2-0007
On 13.09.23 16:36, Aleksander Alekseev wrote: > All in all the patch looks OK but I have a couple of nitpicks. > > ``` > + working on a data directory in an unclean shutdown state or with a corrupt > + control file. > ``` > > ``` > + After running this command on a data directory with corrupted WAL or a > + corrupt control file, > ``` > > I'm not a native English speaker but shouldn't it be "corruptED control file"? fixed > > ``` > + Force <command>pg_resetwal</command> to proceed even in situations where > + it could be dangerous, > ``` > > "where" is probably fine but wouldn't "WHEN it could be dangerous" be better? Hmm, I think I like "where" better. Attached is an updated patch set where I have split the changes into smaller pieces. The last two patches still have some open questions about what certain constants mean etc. The other patches should be settled.
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