小编Alf*_*62 的帖子

如何检查PostgreSQL中的复制延迟?

我想在PostgreSQL 9.3中使用流复制来测量插入数据到master-table和slave-table之间的时间.为此,我创建了表test_time,其中包含2个字段id(serial),t(text).之后添加了一个触发器:

cur_time:=to_char(current_timestamp, 'HH12:MI:SS:MS:US'); update test_time set t=cur_time where id=new.id;

但两张桌子的时间都是一样的.我该如何测量延迟时间

postgresql replication

22
推荐指数
6
解决办法
3万
查看次数

标签 统计

postgresql ×1

replication ×1