Re: [Patch] Make pg_checksums skip foreign tablespace directories
Bernd Helmle <mailings@oopsware.de>
From: Bernd Helmle <mailings@oopsware.de>
To: Michael Paquier <michael@paquier.xyz>
Cc: Michael Banck <michael.banck@credativ.de>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2020-02-26T17:02:22Z
Lists: pgsql-hackers
Attachments
- 0001-Formerly-pg_checksums-recursively-dived-into-pg_tbls.patch (text/x-patch) patch 0001
- 0002-Update-TAP-tests-for-pg_checksums.patch (text/x-patch) patch 0002
Am Dienstag, den 25.02.2020, 11:33 +0900 schrieb Michael Paquier: > I really think that > we should avoid duplicating the same logic around, and that we should > remain consistent with non-directory entries in those paths, > complaining with a proper failure if extra, unwanted files are > present. Okay, please find an updated patch attached. My feeling is that in the case we cannot successfully resolve a tablespace location from pg_tblspc, we should error out, but i could imagine that people would like to have just a warning instead. I've updated the TAP test for pg_checksums by adding a dummy subdirectory into the tablespace directory already created for the corrupted relfilenode test, containing a file to process in case an unpatched pg_checksums is run. With the patch attached, these directories simply won't be considered to check. Thanks, Bernd
Commits
-
Skip foreign tablespaces when running pg_checksums/pg_verify_checksums
- 8f9aba1874ec 11.8 landed
- f6e8e8b3809b 12.3 landed
- 428a2609ef64 13.0 landed
-
Add prefix checks in exclude lists for pg_rewind, pg_checksums and base backups
- da2a7180aa0e 11.8 landed
- a8beece956eb 12.3 landed
- bf883b211eae 13.0 landed