Partially roll back overenthusiastic SSI optimization.

Robert Haas <rhaas@postgresql.org>

Commit: fbc0d07796bcae8b2ee4b09ed236877338c95130
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-04-08T19:29:02Z
Releases: 9.1.0
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

Files

PathChange+/−
src/backend/storage/lmgr/predicate.c modified +13 −7