<programlisting>
# Create a "custom-format" dump of the database you want
# to upgrade (let's call it "olddb")
- $ pg_dump -Fc olddb olddb.dump
+ $ pg_dump -Fc olddb > olddb.dump
# Restore the dump contextually upgrading postgis into
# a new database. The new database doesn't have to exist.
# If you did make additions we assume you know how to backup them before
# upgrading the table. Replace of it with the new one is done like this:
$ psql newdb
- newdb=> drop table spatial_ref_sys;
+ newdb=> delete from spatial_ref_sys;
DROP
newdb=> \i spatial_ref_sys.sql
</programlisting>