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

Re: Streaming replication on win32, still broken

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Subject: Re: Streaming replication on win32, still broken
Date: 2010-02-17 09:00:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Wed, Feb 17, 2010 at 4:07 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> On Wed, Feb 17, 2010 at 3:03 PM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>> In that case, O_DIRECT would be counterproductive, no? It maps to
>> FILE_FLAG_NOI_BUFFERING, which makes sure it doesn't go into the
>> cache. So the read in the startup proc is actually guaranteed to
>> reuqire a physical read - of something we just wrote, so it'll almost
>> certainly end up waiting for a rotation, no?
>> Seems like getting rid of O_DIRECT here is the right thing to do,
>> regardless of this.
> Agreed. I'll remove O_DIRECT from walreceiver.

Here is the patch to do that.


Fujii Masao
NTT Open Source Software Center

Attachment: remove_o_direct_from_walrcv_0217.patch
Description: text/x-patch (5.5 KB)

In response to


pgsql-hackers by date

Next:From: Boszormenyi ZoltanDate: 2010-02-17 09:20:56
Subject: Re: NaN/Inf fix for ECPG
Previous:From: Takahiro ItagakiDate: 2010-02-17 08:43:19
Subject: Re: Re: [BUGS] BUG #4566: pg_stop_backup() reports incorrect STOP WAL LOCATION

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