pgsql: Improve make_greater_string() with encoding-specific incrementer

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve make_greater_string() with encoding-specific incrementer
Date: 2011-10-29 18:24:56
Message-ID: E1RKDaS-0004zM-VJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve make_greater_string() with encoding-specific incrementers.

This infrastructure doesn't in any way guarantee that the character
we produce will sort before the one we incremented; but it does at least
make it much more likely that we'll end up with something that is a valid
character, which improves our chances.

Kyotaro Horiguchi, with various adjustments by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/78d523b633d0c251c904318f2ba9916e2c47b9e8

Modified Files
--------------
src/backend/utils/adt/selfuncs.c | 65 ++++++----
src/backend/utils/mb/wchar.c | 257 ++++++++++++++++++++++++++++++++++++++
src/include/mb/pg_wchar.h | 3 +
3 files changed, 297 insertions(+), 28 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-10-29 18:32:19 pgsql: Fix assorted bogosities in cash_in() and cash_out().
Previous Message Bruce Momjian 2011-10-29 01:19:21 pgsql: Remove pg_upgrade dependency on the 'postgres' database existing