Re: Get the date of creation of objects in the database

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Get the date of creation of objects in the database
Дата
Msg-id 56CB87B2.3020009@aklaver.com
обсуждение исходный текст
Ответ на Get the date of creation of objects in the database  ("Edson F. Lidorio" <edson@openmailbox.org>)
Список pgsql-general
On 02/22/2016 02:00 PM, Edson F. Lidorio wrote:
> Hello,
>
> How to get the date of creation of objects in batabase?
> For example: The date of creation of tables and trigger.

AFAIK that is not recorded by default. If you are using Postgres 9.3+
you could roll your own audit system, going forward, using event triggers:

http://www.postgresql.org/docs/9.5/interactive/event-triggers.html

Take a look at matrix below for what is included and not included:

http://www.postgresql.org/docs/9.5/interactive/event-trigger-matrix.html

PL/pgSQL example:

http://www.postgresql.org/docs/9.5/interactive/plpgsql-trigger.html#PLPGSQL-EVENT-TRIGGER

>
> Thank you;
>
> Edson
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


В списке pgsql-general по дате отправления:

Предыдущее
От: "Edson F. Lidorio"
Дата:
Сообщение: Get the date of creation of objects in the database
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Get the date of creation of objects in the database