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

From Tom Lane
Subject Re: [GENERAL] Table create time
Date
Msg-id 9055.1504192759@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Table create time  (Melvin Davidson <melvin6925@gmail.com>)
Responses Re: [GENERAL] Table create time  (Melvin Davidson <melvin6925@gmail.com>)
List pgsql-general
Melvin Davidson <melvin6925@gmail.com> writes:
> Wolfgang, as David said, a column in pg_class for the creation time of a
> table does not exist. I long ago requested that feature as it is
> in other DB's (Oracle & MS SQL Server), but the main reason that it was not
> done was that no one was interested in doing it.

No, I'd say the big reason it hasn't happened is lack of consensus on
details of how the feature should work --- notably, ought the creation
date be preserved across a dump/restore?  Doing that would require
exposing some method to set the creation date from SQL, whereupon it loses
value for some purposes because you can never be sure that what you're
looking at is the "real" date and not something somebody frobbed later.
OTOH, losing all your creation date info during dump/restore is annoying
too.

            regards, tom lane


pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [GENERAL] Table create time
Next
From: Melvin Davidson
Date:
Subject: Re: [GENERAL] Table create time