Re: [PERFORMANCE] Insights: fseek OR read_cluster?

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: Antonio Rodriges <antonio(dot)rrz(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: [PERFORMANCE] Insights: fseek OR read_cluster?
Date: 2011-09-26 07:59:39
Message-ID: 4E8030EB.60105@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 24/09/2011 2:49 PM, Antonio Rodriges wrote:
> Hello,
>
> It is interesting how PostgreSQL reads the tablefiie.
> Whether its indexes store/use filesystem clusters locations containing
> required data (so it can issue a low level cluster read) or it just
> fseeks inside a file?

What is read_cluster() ? Are you talking about some kind of async
and/or direct I/O? If so, PostgreSQL is not designed for direct I/O, it
benefits from using the OS's buffer cache, I/O scheduler, etc.

IIRC Pg uses pread() to read from its data files, but I didn't go double
check in the sources to make sure.

--
Craig Ringer

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Marc Cousin 2011-09-26 09:39:01 Re: overzealous sorting?
Previous Message anthony.shipman 2011-09-26 06:28:15 overzealous sorting?