X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 99EC2D1B1A9 for ; Mon, 31 May 2004 22:46:50 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 13100-07 for ; Mon, 31 May 2004 22:46:53 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id A423ED1B199 for ; Mon, 31 May 2004 22:46:48 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i511koim013894; Mon, 31 May 2004 21:46:50 -0400 (EDT) To: "Ian Lipsky" Cc: pgsql-admin@postgresql.org Subject: Re: determining when a database was created In-reply-to: References: Comments: In-reply-to "Ian Lipsky" message dated "Mon, 31 May 2004 16:49:31 -0800" Date: Mon, 31 May 2004 21:46:50 -0400 Message-ID: <13893.1086054410@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/344 X-Sequence-Number: 13660 "Ian Lipsky" writes: > How can i determine which directory contains the database files? there > are a few databases. The database directory names correspond to the OID column of pg_database. So: SELECT datname, oid from pg_database; (BTW, this is likely to change in 7.5 if tablespaces get done.) See also the contrib/oid2name tool. regards, tom lane