Re: LWLock deadlock and gdb advice - Mailing list pgsql-hackers

From Jeff Janes
Subject Re: LWLock deadlock and gdb advice
Date
Msg-id CAMkU=1yKihyZK_Vbc7gnS5Q+Xh0h8BhtCWGybbbpiHeiZWAq9Q@mail.gmail.com
Whole thread Raw
In response to Re: LWLock deadlock and gdb advice  (Andres Freund <andres@anarazel.de>)
Responses Re: LWLock deadlock and gdb advice
List pgsql-hackers
On Wed, Jul 29, 2015 at 6:10 AM, Andres Freund <andres@anarazel.de> wrote:
On 2015-07-29 14:22:23 +0200, Andres Freund wrote:
> On 2015-07-29 15:14:23 +0300, Heikki Linnakangas wrote:
> > Ah, ok, that should work, as long as you also re-check the variable's value
> > after queueing. Want to write the patch, or should I?
>
> I'll try. Shouldn't be too hard.

What do you think about something roughly like the attached?

I've not evaluated the code, but applying it does solve the problem I was seeing.

Cheers,

Jeff

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Proposal: backend "niceness" / session_priority
Next
From: Fabien COELHO
Date:
Subject: Re: pgbench stats per script & other stuff