Re: [HACKERS] pgbench stuck with 100% cpu usage - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: [HACKERS] pgbench stuck with 100% cpu usage
Date
Msg-id alpine.DEB.2.20.1709282114330.12902@lancre
Whole thread Raw
In response to Re: [HACKERS] pgbench stuck with 100% cpu usage  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: [HACKERS] pgbench stuck with 100% cpu usage
List pgsql-hackers
>> The commit that introduced this code is 12788ae49e1933f463bc. So I amn
>> copying Heikki.
>
> AFAICR the commit was mostly a heavy restructuring of previous unmaintainable 
> spaghetti code. I'm not sure the problem was not there before under one form 
> or another.
>
> I agree that it should error out & stop the client in this case at least.

Here is a probable "fix", which does was the comment said should be done.

I could not trigger an infinite loop with various kill -9 and other quick 
stops. Could you try it on your side?

-- 
Fabien.
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] Surjective functional indexes
Next
From: Jesper Pedersen
Date:
Subject: [HACKERS] initdb w/ restart