Use pg_restore to restore from a newer version of PostgreSQL

前端 未结 5 2182
难免孤独
难免孤独 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 00:58

    I solved this by upgrading postgresql from 8.X to 9.2.4. If you're using brew on Mac OS-X, use -

    brew upgrade postgresql
    

    Once this is done, just make sure your new postgres installation is at the top of your path. It'll look something like (depending on the version installation path) -

    export PATH=/usr/local/Cellar/postgresql/9.2.4/bin:$PATH
    

提交回复
热议问题