From 8694cc96b52a967a49725f32be7aa77fd3b6ac25 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Fri, 23 Mar 2018 19:14:12 +0300 Subject: Exclude unlogged tables from base backups Exclude unlogged tables from base backup entirely except init fork which marks created unlogged table. The next question is do not backup temp table but it's a story for separate patch. Author: David Steele Review by: Adam Brightwell, Masahiko Sawada Discussion: https://www.postgresql.org/message-id/flat/04791bab-cb04-ba43-e9c0-664a4c1ffb2c@pgmasters.net --- src/backend/storage/file/reinit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/backend/storage/file/reinit.c') diff --git a/src/backend/storage/file/reinit.c b/src/backend/storage/file/reinit.c index 92363ae6ad9..7b8a1253c48 100644 --- a/src/backend/storage/file/reinit.c +++ b/src/backend/storage/file/reinit.c @@ -28,8 +28,6 @@ static void ResetUnloggedRelationsInTablespaceDir(const char *tsdirname, int op); static void ResetUnloggedRelationsInDbspaceDir(const char *dbspacedirname, int op); -static bool parse_filename_for_nontemp_relation(const char *name, - int *oidchars, ForkNumber *fork); typedef struct { @@ -373,7 +371,7 @@ ResetUnloggedRelationsInDbspaceDir(const char *dbspacedirname, int op) * portion of the filename. This is critical to protect against a possible * buffer overrun. */ -static bool +bool parse_filename_for_nontemp_relation(const char *name, int *oidchars, ForkNumber *fork) { -- cgit v1.2.3