mirror of
https://github.com/postgres/postgres.git
synced 2025-08-17 01:02:17 +03:00
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
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user