pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Edson F. Lidorio <edson@openmailbox.org>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Get the date of creation of objects in the database
Date: Mon, 22 Feb 2016 14:12:02 -0800
Message-ID: <56CB87B2.3020009@aklaver.com> (raw)
In-Reply-To: <56CB84F7.20803@openmailbox.org>
References: <56CB84F7.20803@openmailbox.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (10+ messages)  latest in thread

Message-ID: <56CB87B2.3020009@aklaver.com>
Permalink:  ../56CB87B2.3020009@aklaver.com/
Also on:    postgresql.org/message-id/56CB87B2.3020009@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, edson@openmailbox.org
  Subject: Re: Get the date of creation of objects in the database
  In-Reply-To: <56CB87B2.3020009@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox