From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Further improvement of make_greater_string. |
Date: | 2011-10-30 16:22:24 |
Message-ID: | E1RKY9Q-0007Xl-4B@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/eb5834d5af5fd094da2f61a874d9d0ec9c870f6c
Modified Files
--------------
src/backend/utils/adt/selfuncs.c | 37 ++++-
src/backend/utils/mb/wchar.c | 334 ++++++++++++++++++--------------------
2 files changed, 183 insertions(+), 188 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-10-30 19:03:06 | pgsql: Support more locale-specific formatting options in cash_out(). |
Previous Message | Robert Haas | 2011-10-29 18:47:05 | pgsql: Update visibilitymap.c header comments. |