Re: Database Create Date - Mailing list pgsql-admin

From Achilleas Mantzios
Subject Re: Database Create Date
Date
Msg-id 200701091804.13499.achill@matrix.gatewaynet.com
Whole thread Raw
In response to Re: Database Create Date  ("Andy Shellam (Mailing Lists)" <andy.shellam-lists@mailnetwork.co.uk>)
Responses Re: Database Create Date
Re: Database Create Date
List pgsql-admin
Στις Τρίτη 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

pgsql-admin by date:

Previous
From: "Negandhi, Nishith"
Date:
Subject: Re: Database Create Date
Next
From: "Andy Shellam (Mailing Lists)"
Date:
Subject: Re: Database Create Date