pg_stat_subscription_stats: Catching Logical Replication Errors Before Lag Alerts
The reporting subscriber was twenty-six hours behind, but the publisher swore replication was fine — and it was, because it was happily streaming WAL nobody could apply. One duplicate key had killed the apply worker on Tuesday, and the only…