Fix check when tablespace mapping option used with 9.3

As pointed out by EvilElk (Github issue #91).
This commit is contained in:
Ian Barwick
2015-09-29 14:30:37 +09:00
parent a4abbc6f0c
commit 0caddf2d2c

View File

@@ -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);