Re: BUG #2033: Assertion Failure: File: "procarray.c",

From: Joel Stevenson <joelstevenson(at)mac(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2033: Assertion Failure: File: "procarray.c",
Date: 2005-11-09 21:35:27
Message-ID: p06230910bf981673903b@[192.168.0.9]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

At 4:09 PM -0500 11/9/05, Tom Lane wrote:
>Joel Stevenson <joelstevenson(at)mac(dot)com> writes:
>> I've been running the setup on 8.1b3 and 8.1RC1 without this
>> particular Assertion failure, but had not been using the NOWAIT flag
>> until today. During a period of perhaps 20 processes operating on
>> the queue it looks like postgres failed this assertion 17 times, the
>> first coming very shortly after the processes began and the rest
>> following in quick succession.
>
>BTW, I imagine that the apparent correlation to NOWAIT is occurring
>because your client-side code was not checking to see if the NOWAIT
>query had failed before trying to launch another query in the same
>transaction.

That is indeed what the code was doing. I'd added NOWAIT to the
SELECT statement and was catching the error that was being thrown
from the NOWAIT behavior, but didn't think that the error would
invalidate the current transaction (which was not a prepared
transaction.) The fact that it does kill the transaction makes
perfect sense. I'd been thinking of NOWAIT all wrong: as a "return
on block", but it's an "error on block".

Thanks again, Tom.

-Joel

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom.Zschockelt 2005-11-10 06:58:50 Re: BUG #2032: grant role bug
Previous Message Tom Lane 2005-11-09 21:09:15 Re: BUG #2033: Assertion Failure: File: "procarray.c",

Browse pgsql-hackers by date

  From Date Subject
Next Message Gevik babakhani 2005-11-09 22:24:01 Install issue on Windows and directory permission
Previous Message Tom Lane 2005-11-09 21:09:15 Re: BUG #2033: Assertion Failure: File: "procarray.c",