From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: Marko Tiikkaja <marko.tiikkaja@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Subject: Re: BUG #5989: Assertion failure on UPDATE of big value
Date: Wed, 20 Apr 2011 10:51:17 -0400
Message-ID: <26601.1303311077@sss.pgh.pa.us> (raw)
In-Reply-To: <4DAEF1D4.2000203@enterprisedb.com>
References: <201104201411.p3KEBOfA009414@wwwmaster.postgresql.org>
<26153.1303309604@sss.pgh.pa.us>
<4DAEF1D4.2000203@enterprisedb.com>
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> 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
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: tgl@sss.pgh.pa.us, heikki.linnakangas@enterprisedb.com, marko.tiikkaja@2ndquadrant.com, Kevin.Grittner@wicourts.gov
Subject: Re: BUG #5989: Assertion failure on UPDATE of big value
In-Reply-To: <26601.1303311077@sss.pgh.pa.us>
References: <201104201411.p3KEBOfA009414@wwwmaster.postgresql.org> <26153.1303309604@sss.pgh.pa.us> <4DAEF1D4.2000203@enterprisedb.com> <26601.1303311077@sss.pgh.pa.us>
* 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