Commit ba74ce73 authored by Bruce Momjian's avatar Bruce Momjian

Fix from Tom Lane for pg_shadow in pg_upgrade

parent cf505526
...@@ -34,7 +34,7 @@ Description ...@@ -34,7 +34,7 @@ Description
PostgreSQL release without reloading all the data. First, PostgreSQL release without reloading all the data. First,
to be safe, back up your data directory. Then, use: to be safe, back up your data directory. Then, use:
<programlisting> <programlisting>
% pg_dumpall -s >db.out % pg_dumpall -s -z >db.out
</programlisting> </programlisting>
to dump out your old database definitions without any to dump out your old database definitions without any
data. Stop the postmaster and all backends. data. Stop the postmaster and all backends.
......
...@@ -61,7 +61,7 @@ fi ...@@ -61,7 +61,7 @@ fi
# then shouldn't be in there anyway # then shouldn't be in there anyway
cat $INPUT | awk ' { cat $INPUT | awk ' {
if (toupper($0) ~ /^COPY /) if (toupper($1) != "COPY" && $2 != "pg_shadow")
while (getline $0 > 0 && $0 != "\\.") while (getline $0 > 0 && $0 != "\\.")
; ;
else print $0; else print $0;
......
.\" This is -*-nroff-*- .\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here.... .\" 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 .TH pg_upgrade UNIX 1/20/96 PostgreSQL PostgreSQL
.SH NAME .SH NAME
pg_upgrade - allows upgrade from a previous release without reloading data pg_upgrade - allows upgrade from a previous release without reloading data
...@@ -15,7 +15,7 @@ First, to be safe, back up your data directory. ...@@ -15,7 +15,7 @@ First, to be safe, back up your data directory.
Then, use: Then, use:
.nf .nf
pg_dumpall -s >db.out pg_dumpall -s -z >db.out
.fi .fi
to dump out your old database definitions without any data. to dump out your old database definitions without any data.
......
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