In pg_upgrade, add status message about superuser check.
This commit is contained in:
parent
76e5b4c85d
commit
78318d63d7
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user