From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Robert Haas <robertmhaas@gmail.com>
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, 05 Apr 2011 10:18:39 -0500
Message-ID: <4D9AEC7F020000250003C307@gw.wicourts.gov> (raw)
In-Reply-To: <BANLkTikA4fwzp5kxRS+69o0=GfO=x+sE5Q@mail.gmail.com>
References: <4D8F4745020000250003BCFA@gw.wicourts.gov>
<BANLkTikA4fwzp5kxRS+69o0=GfO=x+sE5Q@mail.gmail.com>
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.
-Kevin
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: Kevin.Grittner@wicourts.gov, robertmhaas@gmail.com, drkp@csail.mit.edu, yamt@mwd.biglobe.ne.jp
Subject: Re: BUG #5952: SetRWConflict assertion failure
In-Reply-To: <4D9AEC7F020000250003C307@gw.wicourts.gov>
References: <4D8F4745020000250003BCFA@gw.wicourts.gov> <BANLkTikA4fwzp5kxRS+69o0=GfO=x+sE5Q@mail.gmail.com> <4D9AEC7F020000250003C307@gw.wicourts.gov>
* 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