Re: How to find table creation time - Mailing list pgsql-admin

From Guillaume Lelarge
Subject Re: How to find table creation time
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: How to find table creation time  (reiner peterke <[email protected]>)
List pgsql-admin
On Sat, 2014-04-05 at 08:26 +0200, reiner peterke wrote:
> Hi,
>
> Unfortunately not. This is a feature that is lacking in postgres.
>
> One could always look at the file node times, but this is unreliable too, as  an operation like a vacuum full will
createa new file node. 
> I haven't found a good way to work around this either.
>

I don't think it would be quite difficult to create an extension that
uses a hook to record the timestamp when a user creates a table.
Something like what was done around CREATE EXTENSION to allow adding
some extensions but not all, according to a white list.


--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com



pgsql-admin by date:

Previous
From: reiner peterke
Date:
Subject: Re: How to find table creation time
Next
From: Murthy Nunna
Date:
Subject: Cascade Standby - [FATAL: the database system is starting up]