Scan the buffer pool just once, not once per fork, during relation drop.

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

Commit: ece01aae479227d9836294b287d872c5a6146a11
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-06-07T21:43:11Z
Releases: 9.2.0
Scan the buffer pool just once, not once per fork, during relation drop.

This provides a speedup of about 4X when NBuffers is large enough.
There is also a useful reduction in sinval traffic, since we
only do CacheInvalidateSmgr() once not once per fork.

Simon Riggs, reviewed and somewhat revised by Tom Lane

Files