pgsql: Improve new caching logic in tbm_add_tuples(). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Improve new caching logic in tbm_add_tuples().
Date
Msg-id E1YCBdL-0007LT-6p@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Another attempt at fixing Windows Norwegian locale.
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Advance backend's advertised xmin more aggressively.