Re: how to check the creation date of a postgres

From: "Tomeh, Husam" <htomeh(at)firstam(dot)com>
To: "Jessica Richard" <rjessil(at)yahoo(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: how to check the creation date of a postgres
Date: 2006-09-20 16:29:47
Message-ID: CB0FB369FF86E248A884BCC002562BCB0227DA1B@pisgsna01sxch01.ana.firstamdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


I don't believe it's stored in the database. The closer you can get is
to check the date/timestamp of PG_VERSION file or possibly any file that
may have an earlier date/timestamp, under your database base
subdirectory ($PGDATA/base/your_database_oid/). For instance, for a
database with OID of 34332 :

ls -lt $PGDATA/base/34332/PG*

-rw------- 1 postgres postgres 4 Aug 24 10:41 PG_VERSION

(Note that the PG_VERSION file in your $PGDATA data directory signifies
when the Postgres cluster was created, not a specific database)

--
Husam
http://firstdba.googlepages.com

________________________________

From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Jessica Richard
Sent: Wednesday, September 20, 2006 8:45 AM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] how to check the creation date of a postgres database?

\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.

Thanks,
Jessica

________________________________

Get your own web address for just $1.99/1st yr
<http://us.rd.yahoo.com/evt=43290/*http://smallbusiness.yahoo.com/domain
s> . We'll help. Yahoo! Small Business
<http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/> .

**********************************************************************
This message contains confidential information intended only for the use of the addressee(s) named above and may contain information that is legally privileged. If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited. If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.

Thank you.

FADLD Tag
**********************************************************************

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jessica Richard 2006-09-20 16:52:48 Re: how to check the creation date of a postgres database?
Previous Message Chris Mair 2006-09-20 16:07:50 Re: how to check the creation date of a postgres database?