From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: Rick Turner <rnturn@baxter.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Database subdirectories in V7.1.x
Date: Wed, 17 Oct 2001 00:14:06 -0400
Message-ID: <25134.1003292046@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSF.4.21.0110161503110.18261-100000@megazone23.bigpanda.com>
References: <Pine.BSF.4.21.0110161503110.18261-100000@megazone23.bigpanda.com>
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> The reason tables got renamed into numbers was due to rollbacks of
> drops or drops followed by creates in the same transaction.
That was one reason, but an equally big reason was to have a compact way
of referencing tables in the WAL logs, such that a process re-applying
changes during crash recovery wouldn't need any outside info to apply
the changes. Database and table OIDs fit that description, names do
not.
> I assume that the plan was to move databases in the same direction
I don't think that there are any plans to make DROP DATABASE
rollback-able, but the WAL recovery issue is sufficient reason to use
database OIDs for directory names.
The short answer is that this design decision will not be reversed...
learn about oid2name if you feel a need to understand the substructure
of $PGDATA.
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, sszabo@megazone23.bigpanda.com, rnturn@baxter.com
Subject: Re: Database subdirectories in V7.1.x
In-Reply-To: <25134.1003292046@sss.pgh.pa.us>
References: <Pine.BSF.4.21.0110161503110.18261-100000@megazone23.bigpanda.com> <25134.1003292046@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