Forum OpenACS Q&A: Re: Upgrade PG 7.3.4 to 7.4.1

Collapse
Posted by Tilmann Singer on
I did a restore of a pg 7.4.1 dump on a pg 7.4.1 database recently and saw the same error. It turned out that it works when omitting the manual loading of postgresql.sql before restoring the dump, maybe the same applies to upgrades.
Collapse
Posted by Malte Sussdorff on
Tilmann, you are hereby declared saviour of the day :). It works.

Now someone has to make a note on that in the documentation....

Collapse
Posted by Mark McI on
Hello Malte,

I am experiencing this EXACT problem.  I see that Tillman suggested omitting the manual loading of postgresql.sql. Can you briefly explain what that is?

I am dumping with pg_dump and restoring with the following command:
psql -e dbname < db_dump.sql

Any help you can provide will be MUCH appreciated as I'm inexperienced with postgres and totally stumped.

Collapse
Posted by Rocael Hernández Rizzardini on
do
psql -f packages/acs-kernel/sql/postgresql/postgresql.sql dbname

(that should do the trick)

when I restore a dump, usually do something like:
psql -f dump.file dbname