Partially roll back overenthusiastic SSI optimization.
Robert Haas <rhaas@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/predicate.c | modified | +13 −7 |