projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
158b7fa
)
Fix pg_dumpall on pre-8.1 servers
author
Bruce Momjian
Mon, 13 Jan 2014 03:25:27 +0000
(22:25 -0500)
committer
Bruce Momjian
Mon, 13 Jan 2014 03:25:36 +0000
(22:25 -0500)
rolname did not exist in pg_shadow.
Backpatch to 9.3
Report by Andrew Gierth via IRC
src/bin/pg_dump/pg_dumpall.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_dump/pg_dumpall.c
b/src/bin/pg_dump/pg_dumpall.c
index f3d73fe6c090ee1cc238bb72187878e33d23788a..193c1a0c389a941b2e9a240eaaac39ba859fa999 100644
(file)
--- a/
src/bin/pg_dump/pg_dumpall.c
+++ b/
src/bin/pg_dump/pg_dumpall.c
@@
-699,7
+699,7
@@
dumpRoles(PGconn *conn)
"valuntil as rolvaliduntil, "
"false as rolreplication, "
"null as rolcomment, "
- "
rol
name = current_user AS is_current_user "
+ "
use
name = current_user AS is_current_user "
"FROM pg_shadow "
"UNION ALL "
"SELECT 0, groname as rolname, "