用 homebrew 升級 postgres 資料庫
October 22, 2020
要升級 postgres,可以執行
brew upgrade postgresql
升級完成之後,你現有資料庫裡的資料會和新的 postgres 執行檔不相容。通常你得使用 pg_update 並傳入正確的執行檔來遷移資料,不過 brew 內建了一個升級腳本,可以幫你更新資料。
brew postgresql-upgrade-database
要升級 postgres,可以執行
brew upgrade postgresql
升級完成之後,你現有資料庫裡的資料會和新的 postgres 執行檔不相容。通常你得使用 pg_update 並傳入正確的執行檔來遷移資料,不過 brew 內建了一個升級腳本,可以幫你更新資料。
brew postgresql-upgrade-database