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
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Jessica Richard
Sent: Wednesday, September 20, 2006 8:45 AM
To: pgsql-admin@postgresql.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
**********************************************************************