]> granicus.if.org Git - postgresql/commit
Partially roll back overenthusiastic SSI optimization.
authorRobert Haas <rhaas@postgresql.org>
Fri, 8 Apr 2011 19:29:02 +0000 (15:29 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 8 Apr 2011 19:29:02 +0000 (15:29 -0400)
commitfbc0d07796bcae8b2ee4b09ed236877338c95130
tree24f2fa9d68ed974ccc11ceabe39f888130d1c247
parent9c38bce29cb6d3ef49b932086d31f635981b07e9
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
src/backend/storage/lmgr/predicate.c