pgsql: Improve make_greater_string() with encoding-specific incrementer - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Improve make_greater_string() with encoding-specific incrementer
Date
Msg-id E1RKDaS-0004zM-VJ@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: Remove pg_upgrade dependency on the 'postgres' database existing
Next
From: Tom Lane
Date:
Subject: pgsql: Fix assorted bogosities in cash_in() and cash_out().