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@xxxxxxxxxxx -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general