Re: adding support for posix_fadvise() - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: adding support for posix_fadvise()
Date
Msg-id 1067879859.2414.27.camel@fuji.krosing.net
Whole thread Raw
In response to Re: adding support for posix_fadvise()  (Neil Conway <neilc@samurai.com>)
Responses Re: adding support for posix_fadvise()
List pgsql-hackers
Neil Conway kirjutas E, 03.11.2003 kell 18:59:
> On Mon, 2003-11-03 at 11:11, Tom Lane wrote:
> > Why not?  The advice says that you're going to access the data
> > sequentially in the forward direction.  If you're not going to back up,
> > there is no point in keeping pages in cache after they've been read.
> 
> The advice says: "I'm going to read this data sequentially, going
> forward." It doesn't say: "I'm only going to read the data once, and
> then not access it again" (ISTM that's what FADV_NOREUSE is for).

They seem like independent features. 

Can you use combinations like ( FADV_NOREUS | FADV_SEQUENTIAL )

(I obviously have'nt read the spec)

----------------
Hannu



pgsql-hackers by date:

Previous
From: Christopher Browne
Date:
Subject: RC1 on AIX - working thus far
Next
From: Andrew Dunstan
Date:
Subject: docco on external storage?