mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-23 11:45:36 +02:00
comments minor changes
This commit is contained in:
parent
221b7759c0
commit
884da1cec7
@ -809,6 +809,7 @@ check_server_version(PGconn *conn, PGNodeInfo *nodeInfo)
|
|||||||
"server version is %s, must be %s or higher for backup from replica",
|
"server version is %s, must be %s or higher for backup from replica",
|
||||||
nodeInfo->server_version_str, "9.6");
|
nodeInfo->server_version_str, "9.6");
|
||||||
|
|
||||||
|
/* TODO: search pg_proc for pgpro_edition before calling */
|
||||||
res = pgut_execute_extended(conn, "SELECT pgpro_edition()",
|
res = pgut_execute_extended(conn, "SELECT pgpro_edition()",
|
||||||
0, NULL, true, true);
|
0, NULL, true, true);
|
||||||
|
|
||||||
@ -1526,9 +1527,8 @@ pg_stop_backup(pgBackup *backup, PGconn *pg_startbackup_conn,
|
|||||||
PQclear(res);
|
PQclear(res);
|
||||||
|
|
||||||
/* Create restore point
|
/* Create restore point
|
||||||
* Only if it is backup from master.
|
* Only if backup is from master.
|
||||||
* If PG 9.5, then create restore point only if
|
* For PG 9.5 create restore point only if pguser is superuser.
|
||||||
* pguser is superuser.
|
|
||||||
*/
|
*/
|
||||||
if (backup != NULL && !current.from_replica &&
|
if (backup != NULL && !current.from_replica &&
|
||||||
!(nodeInfo->server_version < 90600 &&
|
!(nodeInfo->server_version < 90600 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user