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

It didn't seem to work....
 
 I just checked one $PGDATA/base directory,  they all have today's time stamp (9/20/06)  around 6:00 am this morning, that was when my daily database dump cron job was running...
 
 thanks anyway
 
 

Chris Mair <chrisnospam@1006.org> wrote: 
> \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



 		
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

view thread (13+ messages)  latest in thread

Message-ID: <20060920165248.46863.qmail@web58307.mail.re3.yahoo.com>
Permalink:  ../20060920165248.46863.qmail@web58307.mail.re3.yahoo.com/
Also on:    postgresql.org/message-id/20060920165248.46863.qmail@web58307.mail.re3.yahoo.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 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: rjessil@yahoo.com, chrisnospam@1006.org
  Subject: Re: how to check the creation date of a postgres database?
  In-Reply-To: <20060920165248.46863.qmail@web58307.mail.re3.yahoo.com>
  References: <1158768470.18229.143.camel@ultra.home.lan> <20060920165248.46863.qmail@web58307.mail.re3.yahoo.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