Add a check to ensure 'hot_standby=on' on master. While this parameter

doesn't have an effect here it will be a reminder for users, besides
will reduce things user have to do on the standby
This commit is contained in:
Jaime Casanova
2011-07-26 16:12:51 -05:00
parent b61ac86b5f
commit cedc5e20fb

View File

@@ -715,6 +715,12 @@ do_standby_clone(void)
log_err(_("%s needs parameter 'archive_mode' to be set to 'on'\n"), progname);
exit(ERR_BAD_CONFIG);
}
if (!guc_setted(conn, "hot_standby", "=", "on"))
{
PQfinish(conn);
log_err(_("%s needs parameter 'hot_standby' to be set to 'on'\n"), progname);
exit(ERR_BAD_CONFIG);
}
/*
* Check if the tablespace locations exists and that we can write to