Re: [Patch] Make pg_checksums skip foreign tablespace directories
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: michael.banck@credativ.de, pgsql-hackers@postgresql.org, david@pgmasters.net, Stephen Frost <sfrost@snowman.net>
Date: 2020-02-19T08:13:16Z
Lists: pgsql-hackers
On Fri, Jan 31, 2020 at 05:39:36PM +0900, Kyotaro Horiguchi wrote: > At Fri, 31 Jan 2020 17:30:43 +0900 (JST), Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote in >> I don't think that is a problem right away, of course. It looks good >> to me except for the possible excessive exclusion. So, I don't object >> it if we don't mind that. > > That's a bit wrong. All the discussion is only on excludeFiles. I > think we should refrain from letting more files match to > nohecksumFiles. I am not sure what you are saying here. Are you saying that we should not use a prefix matching for that part? Or are you saying that we should not touch this list at all? Please note that pg_internal.init is listed within noChecksumFiles in basebackup.c, so we would miss any temporary pg_internal.init.PID if we don't check after the file prefix and the base backup would issue extra WARNING messages, potentially masking messages that could matter. So let's fix that as well. I agree that a side effect of this change would be to discard anything prefixed with "backup_label" or "tablespace_map", including any old, renamed files. Do you know of any backup solutions which could be impacted by that? I am adding David Steele and Stephen Frost in CC so as they can comment based on their experience in this area. I recall that backrest stuff uses the replication protocol, but I may be wrong. -- Michael
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