pgsql: Improve new caching logic in tbm_add_tuples().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve new caching logic in tbm_add_tuples().
Date: 2015-01-16 18:28:35
Message-ID: E1YCBdL-0007LT-6p@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/779fdcdeeeb9cdbfd271f8dc5bde76ed0c7b0813

Modified Files
--------------
src/backend/nodes/tidbitmap.c | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-01-16 23:18:31 pgsql: Advance backend's advertised xmin more aggressively.
Previous Message Heikki Linnakangas 2015-01-16 17:05:02 Re: pgsql: Another attempt at fixing Windows Norwegian locale.