Use pg_restore to restore from a newer version of PostgreSQL

前端 未结 5 2178
难免孤独
难免孤独 2020-12-16 00:32

I have a (production) DB server running PostgreSQL v9.0 and a development machine running PostgreSQL v8.4. I would like to take a dump of the production DB and use it on the

5条回答
  •  自闭症患者
    2020-12-16 01:04

    pg_restore is only for restoring dumps taken in the "custom" format.

    If you do a "plain text" dump you have to use psql to run the generated SQL script:

    psql -f nvdls.db dbname username 
    

提交回复
热议问题