From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ian Lipsky <postgres@merk.caltech.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: determining when a database was created
Date: Mon, 31 May 2004 21:46:50 -0400
Message-ID: <13893.1086054410@sss.pgh.pa.us> (raw)
In-Reply-To: <FD06100DD83F4B1BAA060752ED006C5D.MAI@merk.caltech.edu>
References: <FD06100DD83F4B1BAA060752ED006C5D.MAI@merk.caltech.edu>
"Ian Lipsky" <postgres@merk.caltech.edu> 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
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: tgl@sss.pgh.pa.us, postgres@merk.caltech.edu
Subject: Re: determining when a database was created
In-Reply-To: <13893.1086054410@sss.pgh.pa.us>
References: <FD06100DD83F4B1BAA060752ED006C5D.MAI@merk.caltech.edu> <13893.1086054410@sss.pgh.pa.us>
* 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