Обсуждение: pgsql: Improve make_greater_string() with encoding-specific incrementer

Поиск
Список
Период
Сортировка

pgsql: Improve make_greater_string() with encoding-specific incrementer

От
Robert Haas
Дата:
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(-)