Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
720 views
in Technique[技术] by (71.8m points)

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

On Production server we have repmgr version 4 and upgraded it to version 5. Now doing upgrade of postgresql from 11 to 12. Getting error during the upgrade.

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) RETURNS boolean LANGUAGE "c" STRICT AS '$libdir/repmgr', 'am_bdr_failover_handler';

-- For binary upgrade, handle extension membership the hard way ALTER EXTENSION "repmgr" ADD FUNCTION "repmgr"."am_bdr_failover_handler"(integer);

Any hint?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I found that repmgr versions are different for PostgreSQL 11 and PostgreSQL 12. Once I made it same, PostgreSQL upgrade 11 to 12 worked smoothly.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...