Add a small cache of locks owned by a resource owner in ResourceOwner.
authorTom Lane <[email protected]>
Thu, 27 Aug 2015 16:22:10 +0000 (12:22 -0400)
committerTom Lane <[email protected]>
Thu, 27 Aug 2015 16:22:10 +0000 (12:22 -0400)
commit0e933fdf9463857d4788e2e638affdde865855ce
tree581563b7ee47aa1206f82e3914b757da5e702500
parent8cffc4f5bdfbd41e27680fca27d82ae939cdeda8
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.
src/backend/storage/lmgr/lock.c
src/backend/utils/resowner/resowner.c
src/include/storage/lock.h
src/include/utils/resowner.h