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 1396712697.2641.1.camel@localhost.localdomain
Whole thread Raw
In response to Re: How to find table creation time  (reiner peterke <zedaardv@drizzle.com>)
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]