X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 441DD9FB2BA for ; Wed, 20 Sep 2006 13:08:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 60744-08 for ; Wed, 20 Sep 2006 16:07:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from my.endian.it (unknown [62.146.87.34]) by postgresql.org (Postfix) with ESMTP id BB8849FB2A1 for ; Wed, 20 Sep 2006 13:07:58 -0300 (ADT) Received: from ultra.home.lan (host137-111-dynamic.4-87-r.retail.telecomitalia.it [87.4.111.137]) (authenticated (0 bits)) by my.endian.it (8.11.6/8.11.6) with ESMTP id k8KGHeA16935; Wed, 20 Sep 2006 18:17:40 +0200 Subject: Re: how to check the creation date of a postgres database? From: Chris Mair To: Jessica Richard Cc: pgsql-admin@postgresql.org In-Reply-To: <20060920154509.76447.qmail@web58313.mail.re3.yahoo.com> References: <20060920154509.76447.qmail@web58313.mail.re3.yahoo.com> Content-Type: text/plain Date: Wed, 20 Sep 2006 18:07:50 +0200 Message-Id: <1158768470.18229.143.camel@ultra.home.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/210 X-Sequence-Number: 23124 > \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. The only solution I can think of is querying select oid, datname from pg_database; and then look up the timestamps of the corresponding directories in $PGDATA/base. Bye, Chris. -- Chris Mair http://www.1006.org