Commit b45f3a6e authored by Tom Lane's avatar Tom Lane

Forgot that dumpall's output script should 'delete from pg_group' before

loading new data, for consistency with its handling of pg_shadow.
parent 5e4d8be1
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# It also dumps the pg_shadow and pg_group tables, which belong to the # It also dumps the pg_shadow and pg_group tables, which belong to the
# whole installation rather than any one individual database. # whole installation rather than any one individual database.
# #
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall,v 1.25 2000/05/05 03:04:00 tgl Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall,v 1.26 2000/05/05 17:50:38 tgl Exp $
# #
# to adapt to System V vs. BSD 'echo' # to adapt to System V vs. BSD 'echo'
if echo '\\' | grep '\\\\' >/dev/null 2>&1 if echo '\\' | grep '\\\\' >/dev/null 2>&1
...@@ -56,6 +56,7 @@ echo "${BS}." ...@@ -56,6 +56,7 @@ echo "${BS}."
# XXX this breaks badly if the layout of pg_group ever changes. # XXX this breaks badly if the layout of pg_group ever changes.
# It'd be better to convert the data into CREATE GROUP commands. # It'd be better to convert the data into CREATE GROUP commands.
# #
echo "delete from pg_group;"
echo "copy pg_group from stdin;" echo "copy pg_group from stdin;"
psql -q template1 <<END psql -q template1 <<END
copy pg_group to stdout; copy pg_group to stdout;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment