diff options
Diffstat (limited to 'scripts/checkPostgreSQLrepl')
-rwxr-xr-x | scripts/checkPostgreSQLrepl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/checkPostgreSQLrepl b/scripts/checkPostgreSQLrepl new file mode 100755 index 0000000..19e2615 --- /dev/null +++ b/scripts/checkPostgreSQLrepl @@ -0,0 +1,2 @@ +echo "select st_received as n, date_trunc('second', st_last_received_event_ts) as effective_db_time, date_trunc('second', st_last_received_ts) as last_heard_from, date_trunc('second', st_lag_time) as lagged_by from _gentoo.sl_status order by st_received;" | psql -Upostgres gentoo -hfirebrand +echo "select st_received as n, date_trunc('second', st_last_received_event_ts) as effective_db_time, date_trunc('second', st_last_received_ts) as last_heard_from, date_trunc('second', st_lag_time) as lagged_by from _gentoo.sl_status order by st_received;" | psql -Upostgres gentoo -hdefiant |