Re: [pgsql-hackers-win32] Sync vs. fsync during checkpoint

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [pgsql-hackers-win32] Sync vs. fsync during checkpoint
Date: 2004-02-09 19:04:53
Message-ID: 87r7x4m5uy.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32


Jan Wieck <JanWieck(at)Yahoo(dot)com> writes:

> The whole sync() vs. fsync() discussion is in my opinion nonsense at this
> point. Without the ability to limit the amount of files to a reasonable number,
> by employing tablespaces in the form of larger container files, the risk of
> forcing excessive head movement is simply too high.

I don't think there was any suggestion of conflating tablespaces with
implementing a filesystem in postgres.

Tablespaces are just a database entity that database stored objects like
tables and indexes are associated to. They group database stored objects and
control the storage method and location.

The existing storage mechanism, namely a directory with a file for each
database object, is perfectly adequate and doesn't have to be replaced to
implement tablespaces. All that's needed is that the location of the directory
be associated with the "tablespace" of the object rather than be a global
constant.

Implementing an Oracle-style filesystem is just one more temptation to
reimplement OS services in the database. Personally I think it's an awful
idea. But even if postgres did it as an option, it wouldn't necessarily have
anything to do with tablespaces.

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-02-09 19:08:37 Re: Proposed Query Planner TODO items
Previous Message Robert Treat 2004-02-09 18:55:09 Re: Preventing duplicate vacuums?

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Jan Wieck 2004-02-09 20:41:07 Re: [pgsql-hackers-win32] Sync vs. fsync during checkpoint
Previous Message Bruce Momjian 2004-02-09 16:52:13 Re: [PATCHES] Updated win32 readdir patch