]> granicus.if.org Git - postgresql/commit
Improve make_greater_string() with encoding-specific incrementers.
authorRobert Haas <rhaas@postgresql.org>
Sat, 29 Oct 2011 18:22:20 +0000 (14:22 -0400)
committerRobert Haas <rhaas@postgresql.org>
Sat, 29 Oct 2011 18:22:20 +0000 (14:22 -0400)
commit78d523b633d0c251c904318f2ba9916e2c47b9e8
treed9c7e6c5c5da78df219a3d3b4343a18b526070d3
parent51eba98cf4595e90730dedd9305da8aa84b649ee
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.
src/backend/utils/adt/selfuncs.c
src/backend/utils/mb/wchar.c
src/include/mb/pg_wchar.h