pgsql: Change the way we decide whether to give up on abbreviated text

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Change the way we decide whether to give up on abbreviated text
Date: 2015-04-03 12:48:46
Message-ID: E1Ye11i-0005mU-5w@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Change the way we decide whether to give up on abbreviated text keys.

Be more aggressive about aborting early on if it looks like it's not
helping, but be less aggressive about aborting later on, since it's
more expensive at that point, and also since we're currently aborting
in some cases where abbreviation can still deliver a substantial win.

Peter Geoghegan. Extensive testing by Tomas Vondra.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f85155e18cb71a599724536e598e8d6f5e140454

Modified Files
--------------
src/backend/utils/adt/varlena.c | 45 +++++++++++++++++++++++++++++++++------
1 file changed, 39 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2015-04-03 12:55:52 pgsql: Fix error handling of XLogReaderAllocate in case of OOM
Previous Message Fujii Masao 2015-04-03 09:30:02 pgsql: Rework handling of OOM when allocating record buffer in XLOG rea