Re: Table create time

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Table create time
Date: 2017-08-31 07:28:07
Message-ID: e7ee444d-ce9b-005a-7692-fcf9527c128b@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 31/08/2017 09:56, hamann(dot)w(at)t-online(dot)de wrote:
> Hi,
>
> is there a way to add a table create (and perhaps schema modify) timestamp to the system?
> I do occasionally create semi-temporary tables (meant to live until a problem is solved, i.e. longer
> than a session) with conveniently short names.
In FreeBSD you'd do smth like this to find the file creation time :
ls -lU <path to your cluster>/data/PG_9.3_201306121/16425/12344

where 12344 is the filenode of the relation in question. In ext4 you may do this albeit with more difficulty.

> Also, is there a simple query to identify tables without a table comment? (so a weekly cron
> could remind me of tables that are already a few days old but have no explanatory comment)
>
> I am running PG 9.3
>
> Best regards
> Wolfgang Hamann
>
>
>
>

--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Condor 2017-08-31 07:35:56 How to check streaming replication status
Previous Message Charles Clavadetscher 2017-08-31 07:08:32 Re: Table create time