From: Kris Deugau <kdeugau@webhart.net>
To: pgsql-admin@postgresql.org
Subject: Database directory names
Date: Tue, 02 Jul 2002 16:00:07 -0400
Message-ID: <3D220647.289BFF3@webhart.net> (raw)
I'm in the final stages of setting up database access for our domain
hosting customers. The current system is running PostgreSQL 7.0- with
which I haven't met any major problems (other than trying to figure out
how to restrict access to each domain's database- solved).
However... That box is slated for some major hardware upgrades, and an
update from RedHat 7.0 to 7.3- bringing Postgres up to 7.2. This is not
in and of itself a problem... but one particular attribute of 7.2 has
me very puzzled and concerned.
In 7.0, each database resided in /var/lib/pgsql/data/base/{database
name}. This appears to have changed in 7.2 to an indecipherable number,
with no apparent relation to the database name.
I've spent a little time playing with
CREATE DATABASE dbname WITH LOCATION = 'dbpath';
but it doesn't really suit my needs; I don't want to specify where the
base/ directory goes! I don't need to. I do want to be able to easily
track disk usage on a per-database basis- and while I could just make
note of the directory created when a database is created, it would be
*much* simpler to automate information-generating scripts based on the
database name directly. (Nor do I want to hassle with trying to get
appropriate environment variables set for the postmaster; I *really*
don't want to have to modify the init script.)
Is this a feature, a bug, or a change related to some other critical
functional capability of Postgres? I haven't found anything else that
meets our requirements here, and I can work around this annoyance if
required- but I'd rather be lazy. ;)
-Kris
WebHart Internet Linux Sysadmin
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: kdeugau@webhart.net
Subject: Re: Database directory names
In-Reply-To: <3D220647.289BFF3@webhart.net>
References: <3D220647.289BFF3@webhart.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