Add a small cache of locks owned by a resource owner in ResourceOwner.
Tom Lane <tgl@sss.pgh.pa.us>
Add a small cache of locks owned by a resource owner in ResourceOwner. Back-patch 9.3-era commit eeb6f37d89fc60c6449ca12ef9e91491069369cb, to improve the older branches' ability to cope with pg_dump dumping a large number of tables. I back-patched into 9.2 and 9.1, but not 9.0 as it would have required a significant amount of refactoring, thus negating the argument that this is by-now-well-tested code. Jeff Janes, reviewed by Amit Kapila and Heikki Linnakangas.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/lock.c | modified | +102 −48 |
| src/backend/utils/resowner/resowner.c | modified | +93 −2 |
| src/include/storage/lock.h | modified | +2 −2 |
| src/include/utils/resowner.h | modified | +5 −0 |