Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1D3141337BC8 for ; Wed, 20 Apr 2011 12:13:45 -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 81293-04-5 for ; Wed, 20 Apr 2011 15:13:36 +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 0DADC1337C5C for ; Wed, 20 Apr 2011 12:12:09 -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 p3KFC4AQ027087; Wed, 20 Apr 2011 11:12:04 -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: <4DAEF4D4.1030205@enterprisedb.com> References: <201104201411.p3KEBOfA009414@wwwmaster.postgresql.org> <26153.1303309604@sss.pgh.pa.us> <4DAEF1D4.2000203@enterprisedb.com> <26601.1303311077@sss.pgh.pa.us> <4DAEF4D4.1030205@enterprisedb.com> Comments: In-reply-to Heikki Linnakangas message dated "Wed, 20 Apr 2011 17:59:32 +0300" Date: Wed, 20 Apr 2011 11:12:03 -0400 Message-ID: <27086.1303312323@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/151 X-Sequence-Number: 30070 Heikki Linnakangas writes: > There's *three* transactions here. The first one is serializable, and > reads the tuple. The second one is not serializable, and updates it. The > third one is serializable and updates it again. > The second transaction needs to copy the predicate lock held by the > first transaction to the new row version, so that the third transaction > that updates it again sees the lock. > Or, we document that any non-serializable updates will break the > serialization protection for any other transactions accessing the same rows. Hmm. I wonder whether we need to have some sort of system-wide enable flag for this. Unless you can show that the overhead is negligible (and not having bothered to measure it is definitely not sufficient...) I'm not excited about dragging down the performance of the entire database on the off chance that somebody somewhere might be using SSI. regards, tom lane