iT邦幫忙

0

postgresql資料庫資料轉換的問題

教大家
在ubuntu 上,我原本的資料庫是postgresql 9.3,要如何把資料轉換到postgresql 9.4的版本呢?我使用下列的方式,將9.3版資料庫內容dump下來,

pg_dump dbname > outfile

接著透過下列的方式升級到9.4版的資料庫,但因為它會仍然把9.3與9.4的資料庫並存,我需要在手動移除9.3版的資料庫
升級方式參考:https://medium.com/@tk512/upgrading-postgresql-from-9-3-to-9-4-on-ubuntu-14-04-lts-2b4ddcd26535

最後使用下列的方式將DUMP出來的資料轉至9.4版的postgresql

psql dbname < infile

但為什麼都會無法成功,出現下列的訊息呢?煩請大家指點迷津
https://ithelp.ithome.com.tw/upload/images/20180209/200037053x0ai05gYR.png

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答