Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSDaQ-00056j-Rz for pgsql-general@arkaria.postgresql.org; Thu, 29 Nov 2018 04:05:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gSDaO-0007Hk-Fv for pgsql-general@arkaria.postgresql.org; Thu, 29 Nov 2018 04:05:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSDaO-0007Hd-7m for pgsql-general@lists.postgresql.org; Thu, 29 Nov 2018 04:05:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSDaH-0001Bq-Ca for pgsql-general@postgresql.org; Thu, 29 Nov 2018 04:05:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wAT45iFR000407; Wed, 28 Nov 2018 23:05:44 -0500 From: Tom Lane To: Ron cc: pgsql-general@postgresql.org Subject: Re: The age() of a column? In-reply-to: <5e967a88-1054-5559-0712-44ef00b6b7c1@gmail.com> References: <5e967a88-1054-5559-0712-44ef00b6b7c1@gmail.com> Comments: In-reply-to Ron message dated "Wed, 28 Nov 2018 21:32:48 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <405.1543464344.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 28 Nov 2018 23:05:44 -0500 Message-ID: <406.1543464344@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ron 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=3D# \df+ age = Schema | Name | Result data type | Argument data ty= pes | Type | Volatility | Parallel | Owner | Secur= ity | Access privileges | Language | Sourc= e code | Desc= ription = ... pg_catalog | age | integer | xid = | func | stable | restricted | postgres | invok= er | | internal | xid_age = | age of a transaction ID, in tran= sactions before current transaction The only reference I could find in the SGML docs is in the maintenance chapter. regards, tom lane