Fix from Tom Lane for pg_shadow in pg_upgrade

This commit is contained in:
Bruce Momjian 1998-10-25 02:47:38 +00:00
parent cf5055261e
commit ba74ce73bb
3 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ Description
PostgreSQL release without reloading all the data. First,
to be safe, back up your data directory. Then, use:
<programlisting>
% pg_dumpall -s >db.out
% pg_dumpall -s -z >db.out
</programlisting>
to dump out your old database definitions without any
data. Stop the postmaster and all backends.

View File

@ -61,7 +61,7 @@ fi
# then shouldn't be in there anyway
cat $INPUT | awk ' {
if (toupper($0) ~ /^COPY /)
if (toupper($1) != "COPY" && $2 != "pg_shadow")
while (getline $0 > 0 && $0 != "\\.")
;
else print $0;

View File

@ -1,6 +1,6 @@
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/pg_upgrade.1,v 1.4 1998/08/31 04:32:18 momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/pg_upgrade.1,v 1.5 1998/10/25 02:47:38 momjian Exp $
.TH pg_upgrade UNIX 1/20/96 PostgreSQL PostgreSQL
.SH NAME
pg_upgrade - allows upgrade from a previous release without reloading data
@ -15,7 +15,7 @@ First, to be safe, back up your data directory.
Then, use:
.nf
pg_dumpall -s >db.out
pg_dumpall -s -z >db.out
.fi
to dump out your old database definitions without any data.