Hi all,
Sorry for cross posting.
I have been trying to migrate an instance of GeoNetwork from one
computer to another. I keep having troubles with the Postgresql
database.
The source computer is running the Debian Lenny operating system with
Postgresql 8.3. This has all the GN configuration and metadata in it.
The target computer is running the Debian Squeeze operating system with
Postgresql 8.4. This is where I would like to copy the source GN onto.
I have another development computer on which I loaded Debian Lenny and
Postgresql 8.3. I thought that I successfully loaded a pg_dumpall of the
source machine into this database. I then did an upgrade of the
operating system to Debian Squeeze which also loaded Postgresql 8.4.
I then did:
pg_dropcluster 8.4 main; # to get rid of the new database
pg_upgradecluster 8.3 main; #to upgrade the database to 8.4
This should have worked but I kept on getting errors about hundreds of
different tables not existing.
I then tried:
pg_dropcluster 8.4 main; # to get rid of the new database
pg_dropcluster 8.3 main; # to get rid of the old database
pg_createcluster 8.3 main; # to create a clean 8.3 cluster
pg_ctlcluster 8.3 main start; # to start the clean 8.3 database
psql -f dumpfile - postgres; # to load the dumpfile from the source
When I tried to do another pg_upgradecluster 8.3 main I kept on getting
errors "Server is 8.4 library is 8.3" and then hundreds of errors like:
psql:<stdin>:320652: ERROR: type "geometry" is only a shell
psql:<stdin>:320664: ERROR: aggregate public.accum(geometry) does not
exist
What I would like is a dump of some ones Postgresql 8.4 database created
on a Debian Squeeze operating system for GN 2.7 snapshot. Can anyone
provide this or suggest something else that could help?
Thanks.
John Hockaday