Re: [GENERAL] relation create time - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: [GENERAL] relation create time
Date
Msg-id 804200a3-3722-ec73-60b1-3c1bfd0b3422@2ndquadrant.com
Whole thread Raw
In response to [GENERAL] relation create time  ("Hu, Patricia" <Patricia.Hu@finra.org>)
Responses Re: [GENERAL] relation create time
Re: [GENERAL] relation create time
List pgsql-general
On 5/10/17 12:05, Hu, Patricia wrote:
> I am trying to find out when a table was created in postgresql. Thought
> it would be easy (coming from Oracle world), but haven’t had any luck,
> especially since we are on RDS and can’t peek at the timestamp on the
> file system. Is this information stored anywhere in the catalog?

It is not.

> Or I
> need to store it myself? Is there any plan to add such meta data
> information to the catalog as a feature? Thanks a lot!

You could write an event trigger to record it.

--
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [GENERAL] character encoding of the postgres database
Next
From: "David G. Johnston"
Date:
Subject: Re: [GENERAL] Upgrading postgresql minor version