Skip site navigation (1) Skip section navigation (2)

Re: Free WAL caches on switching segments

From: ITAGAKI Takahiro <itagaki(dot)takahiro(at)lab(dot)ntt(dot)co(dot)jp>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Free WAL caches on switching segments
Date: 2006-02-13 02:43:17
Message-ID: 20060213104414.49B2.ITAGAKI.TAKAHIRO@lab.ntt.co.jp (view raw or flat)
Thread:
Lists: pgsql-patches
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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



In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2006-02-13 02:49:30
Subject: Re: Free WAL caches on switching segments
Previous:From: ITAGAKI TakahiroDate: 2006-02-13 02:30:19
Subject: Re: ignore_killed_tuples is always true

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group