diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-09-16 14:47:27 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-09-16 14:47:27 -0400 |
commit | e5b86c93b66b5caeb25a65bae26b04fc7a068957 (patch) | |
tree | 4b5e7b8f78b609785ae4be2f3c463f8303649e49 /src/backend/access/gist/gistutil.c | |
parent | 57d3dc2035fe8267e877620eddc3823360c7878f (diff) | |
download | postgresql-e5b86c93b66b5caeb25a65bae26b04fc7a068957.tar.gz postgresql-e5b86c93b66b5caeb25a65bae26b04fc7a068957.zip |
Avoid unnecessary page-level SSI lock check in heap_insert().
As observed by Heikki, we need not conflict on heap page locks during an
insert; heap page locks are only aggregated tuple locks, they don't imply
locking "gaps" as index page locks do. So we can avoid some unnecessary
conflicts, and also do the SSI check while not holding exclusive lock on
the target buffer.
Kevin Grittner, reviewed by Jeff Davis. Back-patch to 9.1.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions