2017-03-06 32 views
8

我試圖將我的RDS實例從9.5.4升級到9.6.1,並且由於需要首先升級的PostGIS版本的錯誤而被阻止。由PostGIS版本阻止的Amazon RDS上的PostgreSQL升級

Database instance is in a state that cannot be upgraded: PreUpgrade checks failed: The instance could not be upgraded because there are one or more databases with an older version of PostGIS installed. Please upgrade all installations of PostGIS and try again.

PostGIS的由RDS 9.5.4支持的最高版本是2.2.2

alter extension postgis update

產量

NOTICE: version "2.2.2" of extension "postgis" is already installed

我試着在9.6.1

明確升級到版本

alter extension postgis update to '2.3.0'

獲取

[Err] ERROR: extension "postgis" has no update path from version "2.2.2" to version "2.3.0"

所以我的問題是:我該如何升級?我懷疑我可以在升級之前刪除擴展,然後安裝新版本,但我不知道這會對我的數據產生什麼影響,或者是否可以正確升級我的空間結構或功能。

我已經檢查了documentation對於這種情況

+0

任何人都找到了一個解決方案了嗎? –

回答

4

確保您的實例升級到9.5.4的任何提及在升級到9.6.1之前。

我在我的一個數據庫實例上有這個相同的錯誤,但它在9.5.2上。首先我將它升級到9.5.4,然後升級到9.6.1,一切按預期工作。

我試過的下一個實例已經在9.5.4上,並且得到了相同的消息。

首先,我做了一個:

ALTER EXTENSION postgis UPDATE; 

然後升級服務器

+0

不幸的是,它已經是9.5.4。 –

+0

我在這裏和PostgreSQL 9.5.6和postgis 2.1.8有同樣的問題,我無法更新。任何想法? –

+0

你是否這樣做:ALTER EXTENSION postgis UPDATE; –