How to upgrade PostgreSQL from version 9.6 to version 10.1 without losing data?

后端 未结 15 2689
挽巷
挽巷 2020-12-02 03:33

I\'m using the PostgreSQL database for my Ruby on Rails application (on Mac OS X 10.9).

Are there any detailed instructions on how to upgrade PostgreSQL database?

15条回答
  •  再見小時候
    2020-12-02 03:55

    On Windows I kept facing different errors messages when trying to use pg_upgrade.

    Saved a lot of time for me to just:

    1. Backup DB
    2. Uninstall all copies of PostgreSQL
    3. Install 9.5
    4. Restore DB

提交回复
热议问题