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.
# 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;
.\" 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
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.