Further improvement of make_greater_string.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Oct 2011 16:21:28 +0000 (12:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Oct 2011 16:22:11 +0000 (12:22 -0400)
commiteb5834d5af5fd094da2f61a874d9d0ec9c870f6c
treeff02b14f64f164f9b64fdbc045825583cf8792d4
parentfae54e4a168f9da517be38723fa5f4b7cfeb59c9
Further improvement of make_greater_string.

Make sure that it considers all the possibilities that the old code did,
instead of trying only one possibility per character position.  To keep the
runtime in bounds, instead tweak the character incrementers to not try
every possible multibyte character code.  Remove unnecessary logic to
restore the old character value on failure.  Additional comment and
formatting cleanup.
src/backend/utils/adt/selfuncs.c
src/backend/utils/mb/wchar.c