Skip to content
Snippets Groups Projects
Commit 1609ca5a authored by Bruce Momjian's avatar Bruce Momjian
Browse files

In pg_upgrade, report non-super-user username in error message.

parent 81301b85
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment