From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@postgresql.org
Subject: Re: Database Create Date
Date: Tue, 9 Jan 2007 18:04:13 +0200
Message-ID: <200701091804.13499.achill@matrix.gatewaynet.com> (raw)
In-Reply-To: <45A3B67F.30209@mailnetwork.co.uk>
References: <FE0C41EEBEF01C47BF3A91F606694468047BA9FE@PUNISHER.intra.infousa.com>
<45A3B67F.30209@mailnetwork.co.uk>
Óôéò Ôñßôç 09 ÉáíïõÜñéïò 2007 17:36, ï/ç Andy Shellam (Mailing Lists) Ýãñáøå:
> Negandhi, Nishith wrote:
> > Hi,
> > I need to know the create date of databases on PosegreSQL.
> > PG_DATABASE does not provide this information.
> > Are there any other system catalogs that can provide the above
> > information??
> >
> > Thanks
> > !DSPAM:37,45a3b385137101969839670!
>
> I'm sure there is (not known to me atm), but for a quick shot you could
> find the DB's "OID" from pg_database and look at the create date of "<pg
> data dir>/base/<db oid>"
>
I was able to find that in FreeBSD the -U in ls (1) does the job.
However i could not find any inode creation time related info for linux
(ext3).
Anyone has any clue on that?
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
--
Achilleas Mantzios
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: achill@matrix.gatewaynet.com
Subject: Re: Database Create Date
In-Reply-To: <200701091804.13499.achill@matrix.gatewaynet.com>
References: <FE0C41EEBEF01C47BF3A91F606694468047BA9FE@PUNISHER.intra.infousa.com> <45A3B67F.30209@mailnetwork.co.uk> <200701091804.13499.achill@matrix.gatewaynet.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