Re: [9.4 bug] The database server hangs with write-heavy workload on Windows

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: MauMau <maumau307(at)gmail(dot)com>, Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Craig Ringer <craig(at)2ndquadrant(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [9.4 bug] The database server hangs with write-heavy workload on Windows
Date: 2014-10-28 18:29:55
Message-ID: 544FE0A3.4010608@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 10/14/2014 03:59 PM, MauMau wrote:
> BTW, in LWLockWaitForVar(), the first line of the following code fragment is
> not necessary, because lwWaitLink is set to head immediately. I think it
> would be good to eliminate as much unnecessary code as possible from the
> spinlock section.
>
> proc->lwWaitLink = NULL;
>
> /* waiters are added to the front of the queue */
> proc->lwWaitLink = lock->head;

Thanks, fixed!

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2014-10-28 18:39:32 Re: Trailing comma support in SELECT statements
Previous Message Stephen Frost 2014-10-28 18:08:13 Re: WIP: Access method extendability