Created
March 8, 2013 06:21
-
-
Save nobu666/5114578 to your computer and use it in GitHub Desktop.
PostgreSQL replication monitoring
This file contains 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
diff -u <(psql DB_NAME -c "select * from pg_current_xlog_location()" -t) <(psql DB_NAME -c "select flush_location from pg_stat_replication" -t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment