Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7D3E21337C5D for ; Tue, 5 Apr 2011 12:30:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 55166-04-5 for ; Tue, 5 Apr 2011 15:30:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mail.postgresql.org (Postfix) with ESMTP id A04521337C31 for ; Tue, 5 Apr 2011 12:30:00 -0300 (ADT) Received: by wwc33 with SMTP id 33so589959wwc.19 for ; Tue, 05 Apr 2011 08:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=6up66qhtNOrn9dBH8uPpY7e3/8ZQrQEDm3mK3PIsNu4=; b=jmUKdMWqzzA9Pz2GAlswSu7XguWK6sCPaQz2BZ+BQWMe3QYKlknWXP0oZGQDcPw0sj KnD2UM1mr2vUFCumq8AtUaXOwuiI8oSlz5/ykSneRPJKIRPqCi6KuInSFLd76C0rQTtG zypehJ7Ee6/a2XMeqMNiIYNB7QeO89jvYPHsc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=x5VAeF9XNVkj1Qe9s28IrCvsfPuauS/uPZfiI0rT8zrAwo7lU0s8fv3X+73NOLVwdN 90TvRDmwXVgHcU6Q/UIIFGqTyOUug4vixwOxF/bo4JPy0sLObLs35HjSEc0829CxXcMR iHrPUGIBd5RcaNTBJZeaYvHEyNm7DdQH94ZTo= MIME-Version: 1.0 Received: by 10.216.183.148 with SMTP id q20mr656473wem.88.1302017399150; Tue, 05 Apr 2011 08:29:59 -0700 (PDT) Received: by 10.216.120.135 with HTTP; Tue, 5 Apr 2011 08:29:59 -0700 (PDT) In-Reply-To: <4D9AEC7F020000250003C307@gw.wicourts.gov> References: <4D8F4745020000250003BCFA@gw.wicourts.gov> <4D9AEC7F020000250003C307@gw.wicourts.gov> Date: Tue, 5 Apr 2011 11:29:59 -0400 Message-ID: Subject: Re: BUG #5952: SetRWConflict assertion failure From: Robert Haas To: Kevin Grittner Cc: drkp@csail.mit.edu, yamt@mwd.biglobe.ne.jp, pgsql-bugs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201104/16 X-Sequence-Number: 29935 On Tue, Apr 5, 2011 at 11:18 AM, Kevin Grittner wrote: > Robert Haas wrote: >> This patch looks reasonable, but I'm a bit concerned about the >> chunk immediately preceding the patched area. >> >> When we do this: >> >> =A0 =A0 LWLockRelease(SerializableXactHashLock); >> =A0 =A0 LWLockRelease(partitionLock); >> =A0 =A0 LWLockRelease(SerializablePredicateLockListLock); >> =A0 =A0 LWLockAcquire(partitionLock, LW_SHARED); >> =A0 =A0 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. =A0That sequence should be followed by a copy > of the same "nextpredlock =3D " statement that's just above. =A0Do 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. --=20 Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company