Re: PG 10: could not generate random cancel key - Mailing list pgsql-hackers

From Robert Haas
Subject Re: PG 10: could not generate random cancel key
Date
Msg-id CA+TgmobdaMTZMzAycGLdyMYX81q5K=_xZ3ZipnYd3kAzt7wG-w@mail.gmail.com
Whole thread Raw
In response to PG 10: could not generate random cancel key  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: PG 10: could not generate random cancel key  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On Tue, Jul 17, 2018 at 8:33 AM, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
> if (RAND_status() == 0)
>     RAND_poll();

Looks like a recipe for an infinite loop.  At least, I think we ought
to have a CHECK_FOR_INTERRUPTS() in that loop.

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


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Allow auto_explain to log to NOTICE
Next
From: Heikki Linnakangas
Date:
Subject: Re: chained transactions