1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-07 13:40:17 +02:00

comments minor changes

This commit is contained in:
Grigory Smolkin 2019-07-18 15:44:20 +03:00
parent 221b7759c0
commit 884da1cec7

View File

@ -809,6 +809,7 @@ check_server_version(PGconn *conn, PGNodeInfo *nodeInfo)
"server version is %s, must be %s or higher for backup from replica",
nodeInfo->server_version_str, "9.6");
/* TODO: search pg_proc for pgpro_edition before calling */
res = pgut_execute_extended(conn, "SELECT pgpro_edition()",
0, NULL, true, true);
@ -1526,9 +1527,8 @@ pg_stop_backup(pgBackup *backup, PGconn *pg_startbackup_conn,
PQclear(res);
/* Create restore point
* Only if it is backup from master.
* If PG 9.5, then create restore point only if
* pguser is superuser.
* Only if backup is from master.
* For PG 9.5 create restore point only if pguser is superuser.
*/
if (backup != NULL && !current.from_replica &&
!(nodeInfo->server_version < 90600 &&