Re: [GENERAL] Table create time
От | Michael Paquier |
---|---|
Тема | Re: [GENERAL] Table create time |
Дата | |
Msg-id | CAB7nPqSbc4beiR2zMwqjT0aVmXCMjiddSGQ+8jKw-CuMYSwHuA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [GENERAL] Table create time (Melvin Davidson <melvin6925@gmail.com>) |
Ответы |
Re: [GENERAL] Table create time
|
Список | pgsql-general |
On Thu, Aug 31, 2017 at 10:21 PM, Melvin Davidson <melvin6925@gmail.com> wrote: > Wolfgang, as David said, a column in pg_class for the creation time of a table does not exist. I long ago requested thatfeature 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 doingit. Is there any need for a column in pg_class for that? You could just create an event trigger looking for CREATE TABLE as filter_value: https://www.postgresql.org/docs/9.6/static/sql-createeventtrigger.html And then have this event trigger just save the timestamp value of now() in a custom table with the name and/or OID of the relation involved. -- Michael
В списке pgsql-general по дате отправления: