Skip to content

Commit 78318d6

Browse files
committed
In pg_upgrade, add status message about superuser check.
1 parent 76e5b4c commit 78318d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/pg_upgrade/check.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ check_is_super_user(ClusterInfo *cluster)
484484
PGresult *res;
485485
PGconn *conn = connectToServer(cluster, "template1");
486486

487+
prep_status("Checking database user is a superuser");
488+
487489
/* Can't use pg_authid because only superusers can view it. */
488490
res = executeQueryOrDie(conn,
489491
"SELECT rolsuper "
@@ -497,6 +499,8 @@ check_is_super_user(ClusterInfo *cluster)
497499
PQclear(res);
498500

499501
PQfinish(conn);
502+
503+
check_ok();
500504
}
501505

502506

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy