Re: Free WAL caches on switching segments - Mailing list pgsql-patches

From ITAGAKI Takahiro
Subject Re: Free WAL caches on switching segments
Date
Msg-id 20060213104414.49B2.ITAGAKI.TAKAHIRO@lab.ntt.co.jp
Whole thread Raw
In response to Re: Free WAL caches on switching segments  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Free WAL caches on switching segments
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> wrote:

> I looked this over and I am unsure what this does for us that isn't
> already accomplished using the wal_sync_method settings.  See xlog.c for
> a description of O_DIRECT and when it is used.

I proposed it to supplement the cache control. There are some OSes that
supports posix_fadvise but not O_DIRECT, for example, NetBSD 4.0
(http://www.netbsd.org/Changes/changes-4.0.html).

---
ITAGAKI Takahiro
NTT Cyber Space Laboratories



pgsql-patches by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: ignore_killed_tuples is always true
Next
From: Bruce Momjian
Date:
Subject: Re: Free WAL caches on switching segments