1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-12 11:45:24 +02:00

minor bugfix based on Issue 50: 'pg_log' in PG10 was renamed to 'log'

This commit is contained in:
Grigory Smolkin 2019-02-28 00:30:37 +03:00
parent ee6860f054
commit 2ce874c557
2 changed files with 3 additions and 1 deletions

View File

@ -442,7 +442,7 @@ main(int argc, char *argv[])
for (i = 0; pgdata_exclude_dir[i]; i++); /* find first empty slot */
/* Set 'pg_log' in first empty slot */
pgdata_exclude_dir[i] = "pg_log";
pgdata_exclude_dir[i] = PG_LOG_DIR;
}
if (backup_subcmd == VALIDATE_CMD || backup_subcmd == RESTORE_CMD)

View File

@ -36,8 +36,10 @@
#define BACKUPS_DIR "backups"
#if PG_VERSION_NUM >= 100000
#define PG_XLOG_DIR "pg_wal"
#define PG_LOG_DIR "log"
#else
#define PG_XLOG_DIR "pg_xlog"
#define PG_LOG_DIR "pg_log"
#endif
#define PG_TBLSPC_DIR "pg_tblspc"
#define PG_GLOBAL_DIR "global"