Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b45f3a6

Browse files
committed
Forgot that dumpall's output script should 'delete from pg_group' before
loading new data, for consistency with its handling of pg_shadow.
1 parent 5e4d8be commit b45f3a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_dump/pg_dumpall

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# It also dumps the pg_shadow and pg_group tables, which belong to the
66
# whole installation rather than any one individual database.
77
#
8-
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall,v 1.25 2000/05/05 03:04:00 tgl Exp $
8+
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall,v 1.26 2000/05/05 17:50:38 tgl Exp $
99
#
1010
# to adapt to System V vs. BSD 'echo'
1111
if echo '\\' | grep '\\\\' >/dev/null 2>&1
@@ -56,6 +56,7 @@ echo "${BS}."
5656
# XXX this breaks badly if the layout of pg_group ever changes.
5757
# It'd be better to convert the data into CREATE GROUP commands.
5858
#
59+
echo "delete from pg_group;"
5960
echo "copy pg_group from stdin;"
6061
psql -q template1 <<END
6162
copy pg_group to stdout;

0 commit comments

Comments
 (0)