From: | Jessica Richard <rjessil(at)yahoo(dot)com> |
---|---|
To: | "Tomeh, Husam" <htomeh(at)firstam(dot)com>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: how to check the creation date of a postgres database? |
Date: | 2006-09-20 16:58:51 |
Message-ID: | 20060920165851.38074.qmail@web58305.mail.re3.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Thanks, but I still can't get the database creation date....
% cat PG_VERSION
8.1
16% ls -lt PG*
-rw------- 1 postgres users 4 Jun 22 10:34 PG_VERSION
This date was the date that the Postgres server was upgraded to 8.1 and the timestamp of this file is same under each of all database directories....
"Tomeh, Husam" <htomeh(at)firstam(dot)com> wrote:
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. We'll help. Yahoo! Small Business. **********************************************************************
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
**********************************************************************
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Mair | 2006-09-20 17:00:46 | Re: how to check the creation date of a postgres database? |
Previous Message | Jessica Richard | 2006-09-20 16:52:48 | Re: how to check the creation date of a postgres database? |