Re: Anyone for SSDs? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Anyone for SSDs?
Date
Msg-id 23278.1291994845@sss.pgh.pa.us
Whole thread Raw
In response to Re: Anyone for SSDs?  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Dec 10, 2010 at 1:39 AM, Vaibhav Kaushal
> <vaibhavkaushal123@gmail.com> wrote:
>> Most of you already know I am new to this list and newer to any OSS
>> development. However, while browsing the source code (of 9.0.1) I find
>> that there is only one way to store relations on disk - the magnetic
>> disk.

> But as far as the code goes, there doesn't seem to be any reason why
> SSDs would require any changes to md.c, or an alternate
> implementation.  The interface the operating system presents is the
> same.

The fact that it's called md.c is a hangover from the '80s.  These days,
the logic that the Berkeley guys envisioned being at that code level
is generally in kernel device drivers.  md.c can drive anything that
behaves as a block device + filesystem, which is pretty much everything
of interest.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "BRUSSER Michael"
Date:
Subject: Re: initdb failure with Postgres 8.4.4
Next
From: Tom Lane
Date:
Subject: Re: Extensions, patch v16