Tweak indexscan machinery to avoid taking an AccessShareLock on an index

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a98871b7ac601b4ebe6ba050b1f9cbfdd5d71ded
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-12-03T05:51:03Z
Releases: 8.2.0
Tweak indexscan machinery to avoid taking an AccessShareLock on an index
if we already have a stronger lock due to the index's table being the
update target table of the query.  Same optimization I applied earlier
at the table level.  There doesn't seem to be much interest in the more
radical idea of not locking indexes at all, so do what we can ...

Files