From 1609ca5adb5c8b55076435094532dfbb2a2aea43 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 7 May 2011 12:17:21 -0400 Subject: [PATCH] In pg_upgrade, report non-super-user username in error message. --- contrib/pg_upgrade/check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/pg_upgrade/check.c b/contrib/pg_upgrade/check.c index 26dec39b35..ac290c4a2b 100644 --- a/contrib/pg_upgrade/check.c +++ b/contrib/pg_upgrade/check.c @@ -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); -- 2.40.0