From 0caddf2d2c2a788433fa33b9742582fa422d9719 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 29 Sep 2015 14:30:37 +0900 Subject: [PATCH] Fix check when tablespace mapping option used with 9.3 As pointed out by EvilElk (Github issue #91). --- repmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index e808e12b..6956b136 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1117,7 +1117,7 @@ do_standby_clone(void) { TablespaceListCell *cell; - if (get_server_version(upstream_conn, NULL) < 90400) + if (get_server_version(upstream_conn, NULL) < 90400 && !runtime_options.rsync_only) { log_err(_("in PostgreSQL 9.3, tablespace mapping can only be used in conjunction with --rsync-only\n")); PQfinish(upstream_conn);