是否有一种测量PostgreSQL中逻辑复制滞后的方法?
发布于 2019-02-07 00:44:52
你可以检查一下pg_catalog.pg_replication_slots。在主 (publisher)服务器上运行以下代码:
SELECT
slot_name,
confirmed_flush_lsn,
pg_current_wal_lsn(),
(pg_current_wal_lsn() - confirmed_flush_lsn) AS lsn_distance
FROM pg_replication_slots;lsn_distance是复制滞后的度量。
https://stackoverflow.com/questions/54564156
复制相似问题