PG数据库安装pg_profile后创建快照失败
5MPG 12.7版本,安装最新的pg_profile版本,创建快照报如下错误:

我来答
添加附件
收藏
复制链接
微信扫码分享
在小程序上查看
分享
添加附件
问题补充
8条回答
默认
最新
而且create_server没用,需要set_server_connstr才有意义,因为里面只查询local 的配置
select show_samples();

评论
有用 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回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
墨值悬赏




