Re: Raw device I/O for large objects

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Georgi Chulkov <godji(at)metapenguin(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Raw device I/O for large objects
Date: 2007-09-18 03:11:32
Message-ID: 24702.1190085092@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Georgi Chulkov <godji(at)metapenguin(dot)org> writes:
> I am looking into implementing raw device I/O for large objects into
> PostgreSQL (maybe for all storage, I'm not sure which would be
> easier/better).

We've heard this idea proposed before, and it's been shot down as a poor
use of development effort every time. Check the archives for previous
threads, but the basic argument goes like this: when Oracle et al did
that twenty years ago, it was a good idea because (1) operating systems
tended to have sucky filesystems, (2) performance and reliability
properties of same were not very consistent across platforms, and (3)
being large commercial software vendors they could afford to throw lots
of warm bodies at anything that seemed like a bottleneck. None of those
arguments holds up well for us today however. If you think you want to
reimplement a filesystem you need to have some pretty concrete reasons
why you can outsmart all the smart folks who have worked on
your-favorite-OS's filesystems for lo these many years. There's also
the fact that on any reasonably modern disk hardware, "raw I/O" is
anything but.

My opinion is that there is lots of lower-hanging fruit elsewhere.
You can find some ideas on our TODO list, or troll the pghackers
list archives for other discussions.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Glaesemann 2007-09-18 03:26:41 Re: SPI access to PostgreSQL query plan
Previous Message Bruce Momjian 2007-09-18 03:03:53 Re: Open issues for HOT patch