Jupyter AI终极配置指南:快速连接10+主流AI模型的完整教程
2026/6/8 17:49:53
系统平台:Linux x86-64 Red Hat Enterprise Linux 7
版本:4.3.4
当使用pg_basebackup复制数据目录时报错
2019-06-05 12:07:06.518 CST,15492,5cf73fea.3c84,1,2019-06-05 12:07:06 CST,0,FATAL,XX000,“could not connect to the primary server: FATAL: cannot read pg_class without having selected a database
LINE 1: select rolvaliduntil from pg_roles where rolname = ‘repuser’
^
QUERY: select rolvaliduntil from pg_roles where rolname = ‘repuser’”,“”
如果使用直接复制数据文件的方式,再配置好之后启动备库时也会报同样的错误
安全版的hg_ShowLoginInfo参数,会影响就复制同步。
1.使用安全管理员登入数据库
psql -U syssso -d highgo -p 5866 -h 127.0.0.12.执行下面语句关闭hg_ShowLoginInfo参数
select set_secure_param('hg_ShowLoginInfo','off');3.语句执行后看到执行成功的提示
4.重启数据库
pg_ctl restart5.参数修改生效,可以继续进行备库的复制数据目录操作