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 1E8A39FB366 for ; Fri, 22 Sep 2006 13:39:34 -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 89593-07-4 for ; Fri, 22 Sep 2006 13:39:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id 58A6D9FB36C for ; Fri, 22 Sep 2006 13:30:57 -0300 (ADT) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Fri, 22 Sep 2006 16:30:58 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 22 Sep 2006 11:30:55 -0500 Subject: Re: how to check the creation date of a postgres database? From: Scott Marlowe To: "Jim C. Nasby" Cc: Tom Lane , Jessica Richard , pgsql-admin@postgresql.org In-Reply-To: <20060922161759.GE28987@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> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1158942655.26848.10.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 22 Sep 2006 11:30:55 -0500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.082 tagged_above=0 required=5 tests=AWL, SPF_PASS, UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200609/244 X-Sequence-Number: 23158 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 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"