![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I recently attempted to upgrade a PostgreSQL 7.4 installation to 8.1 by following the instructions at http://www.postgresql.org/docs/8.1/interactive/install-upgrading.html>, having used "pg_dumpall -o" to dump the data in 7.4. When I tried to restore the data in 8.1, psql reported a large number of syntax errors. |
#3
| |||
| |||
|
|
Try making the dump from the 7.4 server using 8.1's pg_dump(all). If you've already wiped the 7.4 installation then you'll have to deal with the incompatibilities yourself. It looked like setting default_with_oids to true in the 8.1 server would help (although do you *really* need to preserve OIDs in your dump? That -o switch is pretty well deprecated these days). The "cannot delete from a view" is probably coming from an attempt to "DELETE FROM pg_shadow", which you can ignore. You didn't show us any other problems. |
#4
| |||
| |||
|
|
ls -l total 282 |
|
/usr/local/pg8.1.4/pg_dumpall -o |gzip > db.out.gz su: /usr/local/pg8.1.4/pg_dumpall: cannot execute binary file /usr/local/pg8.1.4/pg_dump -t languages urldb > test su: /usr/local/pg8.1.4/pg_dump: cannot execute binary file |
gsql-bugs-owner (AT) postgresql (DOT) org] On Behalf Of Tom Lane|
I recently attempted to upgrade a PostgreSQL 7.4 installation to 8.1=20 by following the instructions at=20 http://www.postgresql.org/docs/8.1/i...upgrading.html , having used "pg_dumpall -o" to dump the data in 7.4. When I tried to restore the data in 8.1, psql reported a large number of syntax errors. |
![]() |
| Thread Tools | |
| Display Modes | |
| |