OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81301b8
)
In pg_upgrade, report non-super-user username in error message.
author
Bruce Momjian
<bruce@momjian.us>
Sat, 7 May 2011 16:17:21 +0000
(12:17 -0400)
committer
Bruce Momjian
<bruce@momjian.us>
Sat, 7 May 2011 16:17:21 +0000
(12:17 -0400)
contrib/pg_upgrade/check.c
patch
|
blob
|
history
diff --git
a/contrib/pg_upgrade/check.c
b/contrib/pg_upgrade/check.c
index
26dec39
..
ac290c4
100644
(file)
--- 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);