From 5633e22e2cca0fb8cd3a2664a50b269d862e4f51 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Thu, 6 Jan 2000 21:16:18 +0000
Subject: [PATCH] Update pg_dumpall for new psql format.

---
 src/bin/pg_dump/pg_dumpall | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/pg_dump/pg_dumpall b/src/bin/pg_dump/pg_dumpall
index 36dbba71cc2..1fd452d1f8a 100644
--- a/src/bin/pg_dump/pg_dumpall
+++ b/src/bin/pg_dump/pg_dumpall
@@ -47,7 +47,8 @@ copy tmp_pg_shadow to stdout;
 drop table tmp_pg_shadow;
 END
 echo "${BS}."
-psql -l -A -q -t| tr '|' ' ' | grep -v '^template1 ' | \
+psql -l -A -q -t | grep '|' | tr '|' ' ' | sed -n '2,$p' | \
+grep -v '^template1 ' | \
 while read DATABASE DBUSERID ENCODING DATAPATH
 do
 	POSTGRES_USER="`echo \" \
-- 
GitLab