mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
In pg_upgrade, report non-super-user username in error message.
This commit is contained in:
parent
81301b8578
commit
1609ca5adb
1 changed files with 2 additions and 1 deletions
|
|
@ -491,7 +491,8 @@ check_is_super_user(ClusterInfo *cluster)
|
|||
"WHERE rolname = current_user");
|
||||
|
||||
if (PQntuples(res) != 1 || strcmp(PQgetvalue(res, 0, 0), "t") != 0)
|
||||
pg_log(PG_FATAL, "the database user is not a superuser\n");
|
||||
pg_log(PG_FATAL, "database user \"%s\" is not a superuser\n",
|
||||
os_info.user);
|
||||
|
||||
PQclear(res);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue