Last active
December 22, 2015 23:39
-
-
Save dc2447/6548444 to your computer and use it in GitHub Desktop.
Check for Postgres streaming replication delay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT SUBSTRING(cast (NOW() - pg_last_xact_replay_timestamp() as text) | |
from 0 for 9) AS replication_delay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment