Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9H4EKP92826 for ; Wed, 17 Oct 2001 00:14:20 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f9H4E6c25137; Wed, 17 Oct 2001 00:14:06 -0400 (EDT) To: Stephan Szabo cc: Rick Turner , pgsql-admin@postgresql.org Subject: Re: Database subdirectories in V7.1.x In-reply-to: References: Comments: In-reply-to Stephan Szabo message dated "Tue, 16 Oct 2001 15:14:21 -0700" Date: Wed, 17 Oct 2001 00:14:06 -0400 Message-ID: <25134.1003292046@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200110/150 X-Sequence-Number: 2395 Stephan Szabo 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