From: Robert Haas <robertmhaas@gmail.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: drkp@csail.mit.edu
Cc: yamt@mwd.biglobe.ne.jp
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5952: SetRWConflict assertion failure
Date: Tue, 5 Apr 2011 11:29:59 -0400
Message-ID: <BANLkTim0oG9XeHCFGF7FUNh5wBj7aXSbZg@mail.gmail.com> (raw)
In-Reply-To: <4D9AEC7F020000250003C307@gw.wicourts.gov>
References: <4D8F4745020000250003BCFA@gw.wicourts.gov>
<BANLkTikA4fwzp5kxRS+69o0=GfO=x+sE5Q@mail.gmail.com>
<4D9AEC7F020000250003C307@gw.wicourts.gov>
On Tue, Apr 5, 2011 at 11:18 AM, Kevin Grittner
<Kevin.Grittner@wicourts.gov> wrote:
> Robert Haas <robertmhaas@gmail.com> wrote:
>> This patch looks reasonable, but I'm a bit concerned about the
>> chunk immediately preceding the patched area.
>>
>> When we do this:
>>
>> LWLockRelease(SerializableXactHashLock);
>> LWLockRelease(partitionLock);
>> LWLockRelease(SerializablePredicateLockListLock);
>> LWLockAcquire(partitionLock, LW_SHARED);
>> LWLockAcquire(SerializableXactHashLock, LW_SHARED);
>>
>> Don't we need to also reset nextpredlock to the head of the list?
>> I'm assuming it's the partitionLock that's keeping the
>> PREDICATELOCKs from bouncing out from under us, so if we release
>> it, aren't we potentially point off into thin air?
>
> I think you are right. That sequence should be followed by a copy
> of the same "nextpredlock = " statement that's just above. Do you
> want me to revise the patch or do you just want to take care of it
> as part of the commit?
>
> Thanks for catching that.
If you could send a revised patch, that would be great. I don't want
to muck it up by accident.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: robertmhaas@gmail.com, Kevin.Grittner@wicourts.gov, drkp@csail.mit.edu, yamt@mwd.biglobe.ne.jp
Subject: Re: BUG #5952: SetRWConflict assertion failure
In-Reply-To: <BANLkTim0oG9XeHCFGF7FUNh5wBj7aXSbZg@mail.gmail.com>
References: <4D8F4745020000250003BCFA@gw.wicourts.gov> <BANLkTikA4fwzp5kxRS+69o0=GfO=x+sE5Q@mail.gmail.com> <4D9AEC7F020000250003C307@gw.wicourts.gov> <BANLkTim0oG9XeHCFGF7FUNh5wBj7aXSbZg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox