From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: The age() of a column?
Date: Wed, 28 Nov 2018 23:05:44 -0500
Message-ID: <406.1543464344@sss.pgh.pa.us> (raw)
In-Reply-To: <5e967a88-1054-5559-0712-44ef00b6b7c1@gmail.com>
References: <5e967a88-1054-5559-0712-44ef00b6b7c1@gmail.com>
Ron <ronljohnsonjr@gmail.com> writes:
> What does it mean, and where is it documented?
age(xid) returns the difference between the given xid and the current xid.
It's not terribly well documented, but psql's \df gives some info:
regression=# \df+ age
Schema | Name | Result data type | Argument data types | Type | Volatility | Parallel | Owner | Security | Access privileges | Language | Source code | Description
...
pg_catalog | age | integer | xid | func | stable | restricted | postgres | invoker | | internal | xid_age | age of a transaction ID, in transactions before current transaction
The only reference I could find in the SGML docs is in the maintenance
chapter.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
Subject: Re: The age() of a column?
In-Reply-To: <406.1543464344@sss.pgh.pa.us>
References: <5e967a88-1054-5559-0712-44ef00b6b7c1@gmail.com> <406.1543464344@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox