错误无法访问文件“ $ libdir / repmgr_funcs”没有此类文件或目录

Man*_*dav 5 postgresql ubuntu repmgr

我按照此链接在Ubuntu postgresql服务器上创建主从复制。

我对repmgr和的配置postgresql是:

PostgreSQL 9.5-: /opt/PostgreSQL/9.5/

repmgr-: /usr/lib/postgresql/9.5/bin/repmgr

repmgr.conf-: /etc/rep.conf

pg_config --pkglibdir => /usr/lib/postgresql/9.5/lib


ls /usr/lib/postgresql/9.5/lib | grep repmgr_funcs => repmgr_funcs.so
Run Code Online (Sandbox Code Playgroud)

我收到错误-:无法创建函数

repmgr_update_last_updated: ERROR:  could not access file "$libdir/repmgr_funcs": No such file or directory

ERROR: Unable to create repmgr schema - see preceding error message(s); aborting
Run Code Online (Sandbox Code Playgroud)

Art*_*kyi 5

如果您使用的是repmgrver。4及以上,则需要更改postgresql.conf
shared_preload_libraries = 'repmgr_funcs'
shared_preload_libraries = 'repmgr'

以下是他们的升级说明

repmgr共享库已从repmgr_funcs重命名为repmgr,这意味着postgresql.conf中的shared_preload_libraries需要更新为新名称:shared_preload_libraries ='repmgr'