Converting AGE() to something human readable

From: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Converting AGE() to something human readable
Date: 2017-11-06 14:14:19
Message-ID: aa55696d-11f3-c698-f992-5c119f404b55@cox.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

How is this done in v8.4?

postgres=# SELECT datname, datfrozenxid, age(datfrozenxid)
postgres-# FROM pg_database;
  datname  | datfrozenxid |    age
-----------+--------------+-----------
template1 |   3603334165 |  25735089
template0 |   3603470462 |  25598792
postgres  |   3576970250 |  52099004
TAPd      |   3489165829 | 139903425
(4 rows)

--
World Peace Through Nuclear Pacification

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2017-11-06 14:26:17 Re: xmin increasing within a transaction block?
Previous Message Alvaro Herrera 2017-11-06 14:10:23 Re: xmin increasing within a transaction block?