Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id E4E601337B93 for ; Wed, 20 Apr 2011 11:51:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 52289-07 for ; Wed, 20 Apr 2011 14:51:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 7A5701337B68 for ; Wed, 20 Apr 2011 11:51:22 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p3KEpHS7026602; Wed, 20 Apr 2011 10:51:17 -0400 (EDT) To: Heikki Linnakangas cc: Marko Tiikkaja , pgsql-bugs@postgresql.org, Kevin Grittner Subject: Re: BUG #5989: Assertion failure on UPDATE of big value In-reply-to: <4DAEF1D4.2000203@enterprisedb.com> References: <201104201411.p3KEBOfA009414@wwwmaster.postgresql.org> <26153.1303309604@sss.pgh.pa.us> <4DAEF1D4.2000203@enterprisedb.com> Comments: In-reply-to Heikki Linnakangas message dated "Wed, 20 Apr 2011 17:46:44 +0300" Date: Wed, 20 Apr 2011 10:51:17 -0400 Message-ID: <26601.1303311077@sss.pgh.pa.us> From: Tom Lane 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/147 X-Sequence-Number: 30066 Heikki Linnakangas writes: > 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. Sorry, that argument doesn't pass the sniff test. If the transaction in the middle isn't serializable, then it is not the same as the "first transaction", which means that the first transaction is completed and can no longer be holding any locks. > It's unfortunate because it imposes a performance penalty to updates > even if serializable transactions are not used. I don't think we ever > measured the impact of this. :-( This feature was sold to us on the grounds that it wouldn't impose any performance penalty when not in use. Not having bothered to measure the performance penalty isn't passing the sniff test either. regards, tom lane