From: Jim C. Nasby <jim@nasby.net>
To: Scott Marlowe <smarlowe@g2switchworks.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to check the creation date of a postgres database?
Date: Fri, 22 Sep 2006 11:34:46 -0500
Message-ID: <20060922163446.GG28987@nasby.net> (raw)
In-Reply-To: <1158942655.26848.10.camel@state.g2switchworks.com>
References: <20060920154509.76447.qmail@web58313.mail.re3.yahoo.com>
<82178199-AF56-40A5-AC20-74DF30213622@nasby.net>
<26305.1158935455@sss.pgh.pa.us>
<20060922161759.GE28987@nasby.net>
<1158942655.26848.10.camel@state.g2switchworks.com>
On Fri, Sep 22, 2006 at 11:30:55AM -0500, Scott Marlowe wrote:
> On Fri, 2006-09-22 at 11:17, Jim C. Nasby wrote:
> > On Fri, Sep 22, 2006 at 10:30:55AM -0400, Tom Lane wrote:
> > > Jim Nasby <jim@nasby.net> writes:
> > > > On Sep 20, 2006, at 11:45 AM, Jessica Richard wrote:
> > > >> I would like to know when each of my databases were created.
> > >
> > > > You're not the first person to ask for this, but it's still pretty
> > > > unclear what the use-case for that info is (and without a decent use-
> > > > case, it's pretty unlikely that this info will get stored).
> > >
> > > If we did store it, it would presumably reflect the time of issuance of
> > > CREATE DATABASE, which would mean it wouldn't survive a dump and reload
> > > anyway (as the OP seems to be wishing for).
> >
> > Well, that case could be handled as well, it's just a SMOC. But as I
> > mentioned, it's unlikely an existing developer will get excited about
> > any of this.
>
> How about a default database comment on creation if the user doesn't set
> one, of "database created 2006-09-21 12:34:56"
If we had catalog triggers, one could do that automagically...
--
Jim Nasby jim@nasby.net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
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: jim@nasby.net, smarlowe@g2switchworks.com, tgl@sss.pgh.pa.us, rjessil@yahoo.com
Subject: Re: how to check the creation date of a postgres database?
In-Reply-To: <20060922163446.GG28987@nasby.net>
References: <20060920154509.76447.qmail@web58313.mail.re3.yahoo.com> <82178199-AF56-40A5-AC20-74DF30213622@nasby.net> <26305.1158935455@sss.pgh.pa.us> <20060922161759.GE28987@nasby.net> <1158942655.26848.10.camel@state.g2switchworks.com> <20060922163446.GG28987@nasby.net>
* 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