diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-05-05 17:50:38 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-05-05 17:50:38 +0000 |
commit | b45f3a6e5bece613867c5e1d20893e585ee02727 (patch) | |
tree | 9b4e954b8c9492aea4172ded0f3d16add5b4a30c /src | |
parent | 5e4d8be18bc0943c266fbc9771232e63978509c3 (diff) | |
download | postgresql-b45f3a6e5bece613867c5e1d20893e585ee02727.tar.gz postgresql-b45f3a6e5bece613867c5e1d20893e585ee02727.zip |
Forgot that dumpall's output script should 'delete from pg_group' before
loading new data, for consistency with its handling of pg_shadow.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/pg_dumpall | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_dumpall b/src/bin/pg_dump/pg_dumpall index cb449b0a404..58bedcb1fab 100644 --- a/src/bin/pg_dump/pg_dumpall +++ b/src/bin/pg_dump/pg_dumpall @@ -5,7 +5,7 @@ # It also dumps the pg_shadow and pg_group tables, which belong to the # 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' if echo '\\' | grep '\\\\' >/dev/null 2>&1 @@ -56,6 +56,7 @@ echo "${BS}." # XXX this breaks badly if the layout of pg_group ever changes. # It'd be better to convert the data into CREATE GROUP commands. # +echo "delete from pg_group;" echo "copy pg_group from stdin;" psql -q template1 <<END copy pg_group to stdout; |