On 10/31/16 3:39 PM, Patrick B wrote:
> |(
> ||extract(epoch FROMnow())-
> ||extract(epoch FROMpg_last_xact_replay_timestamp())
> ||)::int lag|
You could certainly simplify it though...
extract(epoch FROM now()-pg_last_xact_replay_timestamp())
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532) mobile: 512-569-9461