Re: Big 7.1 open items - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Big 7.1 open items
Date
Msg-id 200006272123.RAA09720@candle.pha.pa.us
Whole thread Raw
In response to Re: Big 7.1 open items  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Big 7.1 open items
Re: Big 7.1 open items
List pgsql-hackers
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Well, that would allow us to mix database files in the same directory,
> > if we wanted to do that.  My opinion it is better to keep databases in
> > separate directories in each tablespace for clarity and performance
> > reasons.
> 
> One reason not to do that is that we'd still have to special-case
> the system-wide relations.  If it's just tablespace and OID in the
> path, then the system-wide rels look just the same as any other rel
> as far as the low-level stuff is concerned.  That would be nice.

Yes, good point about pg_shadow.  They don't have databases.  How do we
get multiple pg_class tables in the same directory?  Is the
pg_class.relversion file a number like 1,2,3,4, or does it come out of
some global counter like oid.  If so, we could put them in the same
directory.

Should we be concerned about performance when 10-20 database are sitting
in the same directory?  I am thinking about open() and other calls that
scan the directory.  Certainly shorter file names will help.

> 
> My feeling about the "clarity and performance" issue is that if a
> dbadmin wants to keep track of database contents separately, he can
> put different databases' tables into different tablespaces to start
> with.  If he puts several tables into one tablespace, he's saying
> he doesn't care about distinguishing their space usage.  There's
> no reason for us to force an additional level of directory lookup
> to be done whether the admin wants it or not.

OK.

--  Bruce Momjian                        |  http://www.op.net/~candle pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Big 7.1 open items
Next
From: Tom Lane
Date:
Subject: Re: Big 7.1 open items