暂无图片
PG数据库安装pg_profile后创建快照失败
我来答
分享
黄伟波
2022-01-11
PG数据库安装pg_profile后创建快照失败

PG 12.7版本,安装最新的pg_profile版本,创建快照报如下错误:


我来答
添加附件
收藏
分享
问题补充
8条回答
默认
最新
黄伟波

而且create_server没用,需要set_server_connstr才有意义,因为里面只查询local 的配置

select show_samples();


暂无图片 评论
暂无图片 有用 0
暂无图片
黄伟波

已安装相关插件


暂无图片 评论
暂无图片 有用 0
黄伟波
升级问题到: 紧急故障
暂无图片 评论
暂无图片 有用 0
严少安
暂无图片

刚试了下按照这篇文章按照插件就没问题,https://www.modb.pro/db/190803
是那个地方有遗漏?
另外,从截图看,could not translate host name "." to address,可以查下那个地方配置的host name有问题?

暂无图片 评论
暂无图片 有用 0
彭冲

你看下你的两个图,其实问题很明显,你的pg_profile扩展创建在public模式下,但是你使用的时候调用是profile模式。

暂无图片 评论
暂无图片 有用 0
彭冲

重新试试

drop extension pg_profile cascade;
create schema profile;
create extension pg_profile schema  profile;
暂无图片 评论
暂无图片 有用 0
黄伟波

我在另外一个库按顺序create extension pg_profile schema profile;创建也存在这个问题,需要

-- 重置原有的server
select set_server_connstr('local','host=localhost dbname=postgres port=55432 user=postgres password=xxxv');

-- create server
SELECT profile.create_server('tms','host=xxxx12 dbname=postgres port=55432 user=postgres password=xxxv');
select show_servers();


然后可以正常的select * from profile.take_sample();

但是查询快照没有看到



暂无图片 评论
暂无图片 有用 0
黄伟波

pg_hba.conf配置如下


暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏