Adjust index locking rules as per my proposal of earlier today. You
Tom Lane <tgl@sss.pgh.pa.us>
Adjust index locking rules as per my proposal of earlier today. You now are supposed to take some kind of lock on an index whenever you are going to access the index contents, rather than relying only on a lock on the parent table.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/tuptoaster.c | modified | +5 −2 |
| src/backend/access/index/indexam.c | modified | +10 −5 |
| src/backend/commands/analyze.c | modified | +4 −4 |
| src/backend/commands/vacuum.c | modified | +27 −10 |
| src/backend/commands/vacuumlazy.c | modified | +3 −3 |
| src/backend/executor/execUtils.c | modified | +21 −18 |
| src/include/commands/vacuum.h | modified | +4 −4 |