Re: wal_sender_delay and WaitLatchOrSocket

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: wal_sender_delay and WaitLatchOrSocket
Date: 2010-09-14 13:36:30
Message-ID: 4C8F7A5E.4090501@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 14/09/10 16:02, Fujii Masao wrote:
> Hi,
>
> In 9.1dev, wal_sender_delay in *milliseconds* is given
> to WaitLatchOrSocket as *microseconds* timeout. This is
> obviously wrong. The attached patch fixes this problem.

Thanks, fixed.

I was just wondering earlier this morning why walsender process was
consuming so much CPU while there was nothing happening. Should've rang
the bells..

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2010-09-14 13:46:07 Re: Reducing walreceiver latency with a latch
Previous Message Fujii Masao 2010-09-14 13:02:24 wal_sender_delay and WaitLatchOrSocket