From bb953ad164ade6ece0c8b8d02ae155980c967d8b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 12 Jan 2014 22:25:27 -0500 Subject: [PATCH] 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 --- src/bin/pg_dump/pg_dumpall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index f3d73fe6c0..193c1a0c38 100644 --- 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, " - "rolname = current_user AS is_current_user " + "usename = current_user AS is_current_user " "FROM pg_shadow " "UNION ALL " "SELECT 0, groname as rolname, "