X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 511FD9FB1F2 for ; Wed, 20 Sep 2006 13:59:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 90978-09 for ; Wed, 20 Sep 2006 13:58:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from web58305.mail.re3.yahoo.com (web58305.mail.re3.yahoo.com [68.142.236.158]) by postgresql.org (Postfix) with SMTP id 2B9BE9FA4C5 for ; Wed, 20 Sep 2006 13:58:53 -0300 (ADT) Received: (qmail 38076 invoked by uid 60001); 20 Sep 2006 16:58:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=2KD1eFc4Ge5kB1QxjX171971TKNJdrAJ9oMZ+iWNBZthvh5zGSE5oVGx7N/YZMNPHeYRWI5k4+z6Y+L/HRcWhM3QLPvjdYEXiBk97h3OvK/ZgPgvNItm47MWl4jnp9Lsewu8GOcpVqYefxz6/Ef4IdXBV5Jl9usstZ3rZKf1Pdc= ; Message-ID: <20060920165851.38074.qmail@web58305.mail.re3.yahoo.com> Received: from [129.165.226.2] by web58305.mail.re3.yahoo.com via HTTP; Wed, 20 Sep 2006 09:58:51 PDT Date: Wed, 20 Sep 2006 09:58:51 -0700 (PDT) From: Jessica Richard Subject: Re: how to check the creation date of a postgres database? To: "Tomeh, Husam" , pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1184936434-1158771531=:37176" Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.963 tagged_above=0 required=5 tests=AWL, HTML_50_60, HTML_MESSAGE X-Spam-Level: * X-Archive-Number: 200609/213 X-Sequence-Number: 23127 --0-1184936434-1158771531=:37176 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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" 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@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 ********************************************************************** --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail. --0-1184936434-1158771531=:37176 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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@firstam.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
 

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
**********************************************************************


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail. --0-1184936434-1158771531=:37176--