Re: Introduce timeout capability for ConditionVariableSleep - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Introduce timeout capability for ConditionVariableSleep
Date
Msg-id CA+TgmoY1BdB=aZDFDszax_XxDFy8-1t81NwuuyE0VuFaKfFKSQ@mail.gmail.com
Whole thread Raw
In response to Re: Introduce timeout capability for ConditionVariableSleep  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: Introduce timeout capability for ConditionVariableSleep  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
On Fri, Jul 12, 2019 at 11:03 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> I pushed this too.  It's a separate commit, because I think there is
> at least a theoretical argument that it should be back-patched.  I'm
> not going to do that today though, because I doubt anyone is relying
> on ConditionVariableSignal() working that reliably yet, and it's
> really with timeouts that it becomes a likely problem.

To make it work reliably, you'd need to be sure that a process can't
ERROR or FATAL after getting signaled and before doing whatever the
associated work is (or that if it does, it will first pass on the
signal). Since that seems impossible, I'm not sure I see the point of
trying to do anything at all.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Anastasia Lubennikova
Date:
Subject: Re: Support for jsonpath .datetime() method
Next
From: James Coleman
Date:
Subject: Re: [PATCH] Incremental sort (was: PoC: Partial sort)