Improve new caching logic in tbm_add_tuples().
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 Jan 2015 18:28:30 +0000 (13:28 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 Jan 2015 18:28:30 +0000 (13:28 -0500)
commit779fdcdeeeb9cdbfd271f8dc5bde76ed0c7b0813
tree0e909dc966a3dece21d861e4cb841c61da832ca7
parentf5ae3ba4828ece02bae2d16b4cbce847fbcea850
Improve new caching logic in tbm_add_tuples().

For no significant extra complexity, we can cache knowledge that the
target page is lossy, and save a hash_search per iteration in that
case as well.  This probably makes little difference, since the extra
rechecks that must occur when pages are lossy are way more expensive
than anything we can save here ... but we might as well do it if we're
going to cache anything.
src/backend/nodes/tidbitmap.c