Re: Condition variable live lock - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Condition variable live lock
Date
Msg-id 20180105120541.m63hwj3t3fsreayc@alvherre.pgsql
Whole thread Raw
In response to Re: Condition variable live lock  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:

> Obviously, this trades a risk of loss of wakeup for a risk
> of spurious wakeup, but presumably the latter is something we can
> cope with.

I wonder if it'd be useful to have a test mode for condition variables
that spurious wakups happen randomly, to verify that every user is
prepared to cope correctly.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: "Tels"
Date:
Subject: Re: [Patch] Make block and file size for WAL and relations definedat cluster creation
Next
From: Stas Kelvich
Date:
Subject: Re: [HACKERS] Issues with logical replication