Improve bulk-insert performance by keeping the current target buffer pinned

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

Commit: 85e2cedf985bfecaf43a18ca17433070f439fb0e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-11-06T20:51:15Z
Releases: 8.4.0
Improve bulk-insert performance by keeping the current target buffer pinned
(but not locked, as that would risk deadlocks).  Also, make it work in a small
ring of buffers to avoid having bulk inserts trash the whole buffer arena.

Robert Haas, after an idea of Simon Riggs'.

Files