ERROR: Instance reset time is different
CONTEXT: referenced column: generate_wdr_report
--node_name字段为空
select node_name from pg_node_env ;
设置$PGDATA/postgresql.conf
pgxc_node_name=node1
重启数据库,再次生成wdr成功。
参考步骤:
1.postgresql.conf 中设置enable_wdr_snapshot = on,并使用gs_ctl restart 重启
vb_ctl restart
2.连接到postgres库
vsql -r postgres
3.查看生成的快照
select * from snapshot.snapshot;
select create_wdr_snapshot();
select * from pg_node_env;
4. 设置性能报告生成位置
\a \t \o /home/omm/wdrTestNode.html
5.生成性能报告
select generate_wdr_report(12, 13, 'all', 'node', 'node1');
6. 关闭输出
\o \a \t
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
文章被以下合辑收录
评论
热门文章
VMWare用麒麟V10系统安装openGauss 3.0(单机)
2022-09-27 4023浏览
oracle等待事件之gc current multi block request
2020-11-20 3678浏览
[ohasd(18995)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.
2022-02-26 3263浏览
TNS-01189 During Listener Monitoring Using Enterprise Manager
2020-01-16 2391浏览
FATAL: Forbid remote connection with initial user
2023-10-23 2132浏览