In pg_upgrade, add status message about superuser check.

This commit is contained in:
Bruce Momjian 2011-05-09 08:55:36 -04:00
parent 76e5b4c85d
commit 78318d63d7

View file

@ -484,6 +484,8 @@ check_is_super_user(ClusterInfo *cluster)
PGresult *res;
PGconn *conn = connectToServer(cluster, "template1");
prep_status("Checking database user is a superuser");
/* Can't use pg_authid because only superusers can view it. */
res = executeQueryOrDie(conn,
"SELECT rolsuper "
@ -497,6 +499,8 @@ check_is_super_user(ClusterInfo *cluster)
PQclear(res);
PQfinish(conn);
check_ok();
}