Re: Synchronous replication patch v2

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, pavan(dot)deolasee(at)gmail(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Synchronous replication patch v2
Date: 2008-11-14 17:23:51
Message-ID: 491DB427.6020507@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Simon Riggs wrote:
> On Fri, 2008-11-14 at 19:00 +0200, Heikki Linnakangas wrote:
>> Why do we need a separate XLogsndRqst variable in shared memory? Don't
>> we always want to send the WAL up to the same point as we flush it?
>
> If we're doing synch rep and we're committing.

You flush and send the WAL, up to the same point?

> What happens when we're
> doing async rep or running something like a large load.

You don't flush, and you don't request the WAL to be sent? The
background writer and WAL sender can still wake up periodically, and
write and send the WAL as they find convenient.

> I wouldn't want
> to presume that the network packet size and the disk write size are
> always identical.

Huh? No-one's presuming that.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonah H. Harris 2008-11-14 17:30:24 Re: Simple postgresql.conf wizard
Previous Message hernan gonzalez 2008-11-14 17:21:50 Column reordering in pg_dump