]> granicus.if.org Git - postgresql/commit
Change the way we decide whether to give up on abbreviated text keys.
authorRobert Haas <rhaas@postgresql.org>
Fri, 3 Apr 2015 12:32:05 +0000 (08:32 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 3 Apr 2015 12:32:05 +0000 (08:32 -0400)
commitf85155e18cb71a599724536e598e8d6f5e140454
tree9f498b7ac51af66213f64db936ad70c287e3618b
parent9b8d4782ba0f75eb0f029c743bb85166999d9fa5
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.
src/backend/utils/adt/varlena.c