Re: [HACKERS] register creation date of table - Mailing list pgsql-general

From Robert Haas
Subject Re: [HACKERS] register creation date of table
Date
Msg-id CA+TgmoYfjH7Rj2a8__dD2M6P==2nkd4ySHYJc4WGCBQz=yZo_g@mail.gmail.com
Whole thread Raw
In response to [HACKERS] register creation date of table  (Willy-Bas Loos <willybas@gmail.com>)
List pgsql-general
On Fri, Oct 14, 2011 at 6:20 AM, Willy-Bas Loos <willybas@gmail.com> wrote:
> 1. I think that there is no such information in the system tables. is
> that correct?

Yes.  It's been discussed before but some people (particularly, Tom,
IIRC) are not convinced that it's useful enough to justify its
existence.

> 2. i would like to go back in time. I think that i will just look up
> the creation date for the files in the data directory and translate
> their oid's to the object names and then update their dates. This
> would of course only work from the last restore. Is that a good way to
> do it?

Well, that timestamp will get bumped on TRUNCATE, CLUSTER, VACUUM
FULL, and rewriting versions of ALTER TABLE.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-general by date:

Previous
From: Condor
Date:
Subject: Re: How to make replica and use it when master is down ?
Next
From: Thomas Kellerer
Date:
Subject: 9.1 got really fast ;)