pgsql: Partially roll back overenthusiastic SSI optimization.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Partially roll back overenthusiastic SSI optimization.
Date: 2011-04-08 19:32:54
Message-ID: E1Q8HQM-0003ue-J7@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Partially roll back overenthusiastic SSI optimization.

When a regular lock is held, SSI can use that in lieu of a predicate lock
to detect rw conflicts; but if the regular lock is being taken by a
subtransaction, we can't assume that it'll commit, so releasing the
parent transaction's lock in that case is a no-no.

Kevin Grittner

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fbc0d07796bcae8b2ee4b09ed236877338c95130

Modified Files
--------------
src/backend/storage/lmgr/predicate.c | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-04-08 19:39:54 pgsql: Modify initdb to complain only when no usable system locales are
Previous Message Bruce Momjian 2011-04-08 17:12:48 pgsql: Have pg_upgrade properly preserve relfrozenxid in toast tables.