pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jessica Richard <rjessil@yahoo.com>
To: Tomeh, Husam <htomeh@firstam.com>
To: pgsql-admin@postgresql.org
Subject: Re: how to check the creation date of a postgres database?
Date: Wed, 20 Sep 2006 09:58:51 -0700 (PDT)
Message-ID: <20060920165851.38074.qmail@web58305.mail.re3.yahoo.com> (raw)
In-Reply-To: <CB0FB369FF86E248A884BCC002562BCB0227DA1B@pisgsna01sxch01.ana.firstamdata.com>

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

view thread (13+ messages)  latest in thread

Message-ID: <20060920165851.38074.qmail@web58305.mail.re3.yahoo.com>
Permalink:  ../20060920165851.38074.qmail@web58305.mail.re3.yahoo.com/
Also on:    postgresql.org/message-id/20060920165851.38074.qmail@web58305.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, htomeh@firstam.com
  Subject: Re: how to check the creation date of a postgres database?
  In-Reply-To: <20060920165851.38074.qmail@web58305.mail.re3.yahoo.com>
  References: <CB0FB369FF86E248A884BCC002562BCB0227DA1B@pisgsna01sxch01.ana.firstamdata.com> <20060920165851.38074.qmail@web58305.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