Improve make_greater_string() with encoding-specific incrementers.

Robert Haas <rhaas@postgresql.org>

Commit: 78d523b633d0c251c904318f2ba9916e2c47b9e8
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-10-29T18:22:20Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/backend/utils/adt/selfuncs.c modified +37 −28
src/backend/utils/mb/wchar.c modified +257 −0
src/include/mb/pg_wchar.h modified +3 −0