Re: Get the date of creation of objects in the database - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Get the date of creation of objects in the database
Date
Msg-id 56CB87B2.3020009@aklaver.com
Whole thread Raw
In response to Get the date of creation of objects in the database  ("Edson F. Lidorio" <edson@openmailbox.org>)
List 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 by date:

Previous
From: "Edson F. Lidorio"
Date:
Subject: Get the date of creation of objects in the database
Next
From: "David G. Johnston"
Date:
Subject: Re: Get the date of creation of objects in the database