Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 030AC1337BC8 for ; Wed, 20 Apr 2011 12:27:11 -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 30106-09 for ; Wed, 20 Apr 2011 15:27:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 4EE401337BEB for ; Wed, 20 Apr 2011 12:27:03 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 20 Apr 2011 10:27:02 -0500 Message-Id: <4DAEB4F1020000250003CA92@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 20 Apr 2011 10:26:57 -0500 From: "Kevin Grittner" To: "Heikki Linnakangas" , "Tom Lane" Cc: "Marko Tiikkaja" , Subject: Re: BUG #5989: Assertion failure on UPDATE of big value References: <201104201411.p3KEBOfA009414@wwwmaster.postgresql.org> <26153.1303309604@sss.pgh.pa.us> <4DAEF1D4.2000203@enterprisedb.com> In-Reply-To: <4DAEF1D4.2000203@enterprisedb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/154 X-Sequence-Number: 30073 Heikki Linnakangas wrote: > On 20.04.2011 17:26, Tom Lane wrote: >> Why is predicate.c getting called at all when >> transaction_isolation is not SERIALIZABLE? (Although the same >> crash happens when it is ...) > > Because another serializable transaction that reads/updates the > tuple later needs to find the predicate lock acquired by the > first transaction, even if the transaction in the middle isn't > serializable. For an example of the issue, see this post: http://archives.postgresql.org/pgsql-hackers/2011-02/msg00325.php While all transactions there are serializable, the issue exists even if the transaction which updates the tuple with the predicate lock isn't serializable. -Kevin