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 1gSD4T-0003Sp-Qd for pgsql-general@arkaria.postgresql.org; Thu, 29 Nov 2018 03:32:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gSD4S-0008Qd-B5 for pgsql-general@arkaria.postgresql.org; Thu, 29 Nov 2018 03:32: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 1gSD4R-0008QW-Vy for pgsql-general@lists.postgresql.org; Thu, 29 Nov 2018 03:32:56 +0000 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSD4P-0000SS-8k for pgsql-general@postgresql.org; Thu, 29 Nov 2018 03:32:55 +0000 Received: by mail-ot1-x341.google.com with SMTP id i20so501828otl.0 for ; Wed, 28 Nov 2018 19:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=VggI90QYM9P9DlwSp5XhocR2V3c59jrgrQrphLVok+Y=; b=oStuQCrmQ6Jzy6cagi0m99SRzM+0Z8VorQ8hMa7Ck/FNTQsO8FkmTRQA1Xx8dT9kJM bZ7F1PjjTMrWwqPvMRBl/CI7pWrs668wWgEdB0Fe7E5yfDjBAnTStvgn3Tdty8uGz2jC NIyviHdBV3J9w4mBBmV59gH2YDv20VKCP62Eowk2pEwdKh7aUU5i5UShyagtzEH32ir6 0211tj2Dy9mxpli5eGhYTAUQIr7tUpvJz7/qr5FN7MPtDjXrZFgSeUZukrNNj45ahJU/ zwpI5ZSlhqJzjbdz6DDiGvpjNSM4pMMMMLauZbdxgT+GuxI9PiXs/mPgmdORCFqcmX5Z ZJEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=VggI90QYM9P9DlwSp5XhocR2V3c59jrgrQrphLVok+Y=; b=ODhT/rySUSPdlEzH8SyOzKiaDrTerD98H4CmlTEVwwGHwyWKaLpoxEPP6326QGm8zA 8QTzVglIsQ+nyuJzzjdIBs1Z2B94cOe0yTER6hcHLGqoBY/QueYFqSkqBlsgN7AhIgQK qyVdNvXe1TDCOLm19MuPW2+Ba1P1bwUWMjIYJKFKiOG/BMQjskYLRQ3kjQOR2dFBewIL 37ZG3cJNGdWUHgkc0Qf+jLSM571WeH6r/ti5O/bzVY994jG9ZCZXwRRJhnux2J7BmFg1 S25Mm/c4RMaE/IcOdwVlWV2Kxp43rPfrOSde4934BDyAZctUC2uOCDa5h5LYrKiHmAWe rQbQ== X-Gm-Message-State: AGRZ1gJ1g3AJTW6gE2k+q6+y3Q9Bw2uz2EsEChCMqh0oJC04vOzVlXwr T0P7x4HsFCydSP2i5E2PWGkvuz8z X-Google-Smtp-Source: AFSGD/Vocg/C/GCC9ldqlba/VRiJsOoIqucw5IIrygzkDDm8f3JO1xB62Lt1bhxvJaCYoVslTX5tZQ== X-Received: by 2002:a05:6830:d:: with SMTP id c13mr23698135otp.82.1543462370130; Wed, 28 Nov 2018 19:32:50 -0800 (PST) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id c23sm424739otn.21.2018.11.28.19.32.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 19:32:49 -0800 (PST) To: pgsql-general@postgresql.org From: Ron Subject: The age() of a column? Message-ID: <5e967a88-1054-5559-0712-44ef00b6b7c1@gmail.com> Date: Wed, 28 Nov 2018 21:32:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk What does it mean, and where is it documented?  The only place in the docs I see reference to age() is https://www.postgresql.org/docs/9.6/functions-datetime.html and this doesn't seem to fit that use case. Thanks TAPb=# select COALESCE(ta.schemaname, 'pg_toast') || '.' || cl.relname,        cl.relfrozenxid,        age(cl.relfrozenxid) from pg_class cl FULL JOIN pg_tables ta     ON ta.tablename = cl.relname where not cl.relfrozenxid = xid '0'   --and age(cl.relfrozenxid) > 4000000 order by 1 limit 30;            ?column?            | relfrozenxid |   age -------------------------------+--------------+--------- cds.ach_return_batch           |     58569152 | 2111005 cds.ach_return_detail          |     58569152 | 2111005 cds.all_day_event              |     58569152 | 2111005 cds.all_day_event_trigger      |     58569152 | 2111005 [snip] cds.bank_ftp                   |     58569152 | 2111005 cds.bank_health_care_job       |     58569152 | 2111005 cds.bank_inbound_file          |     58569152 | 2111005 cds.bank_input_format          |     58569152 | 2111005 (30 rows) -- Angular momentum makes the world go 'round.