From 2ce874c557435f8df4976c2ce7ba8e531ab7861b Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Thu, 28 Feb 2019 00:30:37 +0300 Subject: [PATCH] minor bugfix based on Issue 50: 'pg_log' in PG10 was renamed to 'log' --- src/pg_probackup.c | 2 +- src/pg_probackup.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pg_probackup.c b/src/pg_probackup.c index 50a50c56..bc8a67bf 100644 --- a/src/pg_probackup.c +++ b/src/pg_probackup.c @@ -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) diff --git a/src/pg_probackup.h b/src/pg_probackup.h index 921cbd25..a22edfee 100644 --- a/src/pg_probackup.h +++ b/src/pg_probackup.h @@ -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"