Make abbreviated key comparisons for text a bit cheaper. If we do some byte-swapping while abbreviating, we can do comparisons using integer arithmetic rather than memcmp.
Peter Geoghegan, reviewed and slightly revised by me. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/bfb54ff15a447fb22e9deae096e0d45b3e4bd56f Modified Files -------------- src/backend/utils/adt/varlena.c | 29 ++++++++++++++++++++--------- src/include/port/pg_bswap.h | 26 ++++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 11 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
