Skip to content

Commit bb953ad

Browse files
committed
Fix pg_dumpall on pre-8.1 servers
rolname did not exist in pg_shadow. Backpatch to 9.3 Report by Andrew Gierth via IRC
1 parent 158b7fa commit bb953ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_dumpall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ dumpRoles(PGconn *conn)
699699
"valuntil as rolvaliduntil, "
700700
"false as rolreplication, "
701701
"null as rolcomment, "
702-
"rolname = current_user AS is_current_user "
702+
"usename = current_user AS is_current_user "
703703
"FROM pg_shadow "
704704
"UNION ALL "
705705
"SELECT 0, groname as rolname, "

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy