mirror of
https://github.com/postgres/postgres.git
synced 2025-08-17 01:02:17 +03:00
Skip temp tables from basebackup.
Do not store temp tables in basebackup, they will not be visible anyway, so, there are not reasons to store them. Author: David Steel Reviewed by: me Discussion: https://www.postgresql.org/message-id/flat/5ea4d26a-a453-c1b7-eff9-5a3ef8f8aceb@pgmasters.net
This commit is contained in:
@@ -325,7 +325,6 @@ static void RemovePgTempFilesInDir(const char *tmpdirname, bool missing_ok,
|
||||
bool unlink_all);
|
||||
static void RemovePgTempRelationFiles(const char *tsdirname);
|
||||
static void RemovePgTempRelationFilesInDbspace(const char *dbspacedirname);
|
||||
static bool looks_like_temp_rel_name(const char *name);
|
||||
|
||||
static void walkdir(const char *path,
|
||||
void (*action) (const char *fname, bool isdir, int elevel),
|
||||
@@ -3192,7 +3191,7 @@ RemovePgTempRelationFilesInDbspace(const char *dbspacedirname)
|
||||
}
|
||||
|
||||
/* t<digits>_<digits>, or t<digits>_<digits>_<forkname> */
|
||||
static bool
|
||||
bool
|
||||
looks_like_temp_rel_name(const char *name)
|
||||
{
|
||||
int pos;
|
||||
|
Reference in New Issue
Block a user