簡體   English   中英

Postgresql 從版本 11 升級到 12 失敗,repmgr 4 到 5

[英]Postgresql Upgrade fails from version 11 to 12 with repmgr 4 to 5

在生產服務器上,我們有 repmgr 版本 4 並將其升級到版本 5。現在正在將 postgresql 從 11 升級到 12。升級過程中出現錯誤。

pg_restore: error: could not execute query: ERROR: could not find function "am_bdr_failover_handler" in file "/usr/lib/postgresql/12/lib/repmgr.so" Command was: CREATE FUNCTION "repmgr"."am_bdr_failover_handler"(integer ) 返回 boolean LANGUAGE "c" STRICT AS '$libdir/repmgr', 'am_bdr_failover_handler';

-- 對於二進制升級,處理擴展成員的困難方式 ALTER EXTENSION "repmgr" ADD FUNCTION "repmgr"."am_bdr_failover_handler"(integer);

有什么提示嗎?

我發現 PostgreSQL 11 和 PostgreSQL 12 的 repmgr 版本不同。一旦我將其設置為相同,PostgreSQL 升級 11 到 12 工作順利。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM