pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Mair <chrisnospam@1006.org>
To: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to check the creation date of a postgres database?
Date: Wed, 20 Sep 2006 18:07:50 +0200
Message-ID: <1158768470.18229.143.camel@ultra.home.lan> (raw)
In-Reply-To: <20060920154509.76447.qmail@web58313.mail.re3.yahoo.com>
References: <20060920154509.76447.qmail@web58313.mail.re3.yahoo.com>


> \l and  \l+ show only the database name, owner and description.
> select * from pg_database does not have date info, either.
> 
> I would like to know when each of my databases were created.

The only solution I can think of is querying
select oid, datname from pg_database;
and then look up the timestamps of the corresponding directories
in $PGDATA/base.

Bye, Chris.


-- 

Chris Mair
http://www.1006.org




view thread (13+ messages)  latest in thread

Message-ID: <1158768470.18229.143.camel@ultra.home.lan>
Permalink:  ../1158768470.18229.143.camel@ultra.home.lan/
Also on:    postgresql.org/message-id/1158768470.18229.143.camel@ultra.home.lan

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: chrisnospam@1006.org, rjessil@yahoo.com
  Subject: Re: how to check the creation date of a postgres database?
  In-Reply-To: <1158768470.18229.143.camel@ultra.home.lan>
  References: <20060920154509.76447.qmail@web58313.mail.re3.yahoo.com> <1158768470.18229.143.camel@ultra.home.lan>

* 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