pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pavan95 <pavan.postgresdba@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Adding date column to system catalog "pg_database"
Date: Thu, 7 Jun 2018 04:05:44 -0700 (MST)
Message-ID: <1528369544218-0.post@n3.nabble.com> (raw)

Hi all,

Is it possible to add date column to "pg_database" view by altering the
table? 

Reason is to get the created date of each database, I will schedule a
trigger to update the date column with current server time. By this I can
get the db creation date every now from the point of creation of new db.

Any ideas in accomplishment of this task are of great help!

Thanks in advance.



Regards,
Pavan



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html




view thread (4+ messages)  latest in thread

Message-ID: <1528369544218-0.post@n3.nabble.com>
Permalink:  ../1528369544218-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1528369544218-0.post@n3.nabble.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-admin@postgresql.org
  Cc: pavan.postgresdba@gmail.com
  Subject: Re: Adding date column to system catalog "pg_database"
  In-Reply-To: <1528369544218-0.post@n3.nabble.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