Skip to content

Instantly share code, notes, and snippets.

@lansz
lansz / pglag.sh
Created January 2, 2014 12:49 — forked from dansimau/pglag.sh
#!/bin/bash
#
# Show replication lag for one or more postgresql slaves in streaming replication.
#
# dsimmons@squiz.co.uk
# 2012-01-09
#
psql="which psql"
psql_extra_opts=""