Commit 78318d63 authored by Bruce Momjian's avatar Bruce Momjian

In pg_upgrade, add status message about superuser check.

parent 76e5b4c8
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment