Improve make_greater_string() with encoding-specific incrementers.
Robert Haas <rhaas@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| 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 |