Re: [HACKERS] [hackers]development suggestion needed

From: Don Baccus <dhogaza(at)pacifier(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, xun(at)cs(dot)ucsb(dot)edu (Xun Cheng)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] [hackers]development suggestion needed
Date: 2000-01-14 01:43:39
Message-ID: 3.0.1.32.20000113174339.01078360@mail.pacifier.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 08:23 PM 1/13/00 -0500, Tom Lane wrote:

>As far as the actual implementation goes, the low level access methods
>go through a "storage manager" switch that was intended to allow for
>the addition of a new storage manager, such as a raw-device manager.
>So you could get a good deal of stuff working by implementing code that
>parallels md.c/fd.c. The main problem at this point is that there is a
>fair amount of utility code that goes out and does its own manipulation
>of the database file structure. You'd need to clean that up by pushing
>it all down below the storage manager switch (inventing new storage
>manager calls as needed).

This would need to be done to implement some sort of tablespace-style
facility, too, right? I'm off Xun's thread in asking but I've been
wondering. DBs like Oracle allow you to place tables and indices
whereever you like in the filesystem. This is normally done to
distribute things across different spindles, and in large, busy
databases makes a significant difference. I've done some experimenting
moving index files to a different spindle (using "ln" to fool
postgres, of course) and insertions go measurably faster. Spindles
are so cheap nowadays :)

I know there's been discussion of letting folks specify where the
WAL will be placed when it's implemented, for safety's sake - it
will also improve performance.

>You don't get to do either of the latter two unless you write a
>raw-device storage manager

Not within a single filesystem, but scattering things across spindles
could be done without a raw-device storage manager :)

(not what he's talking about, but heck, thought I'd raise it)

- Don Baccus, Portland OR <dhogaza(at)pacifier(dot)com>
Nature photos, on-line guides, Pacific Northwest
Rare Bird Alert Service and other goodies at
http://donb.photo.net.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-01-14 01:47:05 Many regress tests failing due to latest psql changes
Previous Message Tom Lane 2000-01-14 01:32:51 Peter opens a can of worms