Fix varstr_cmp's special case for UTF8 encoding on Windows so that strings
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Mar 2008 18:32:09 +0000 (18:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Mar 2008 18:32:09 +0000 (18:32 +0000)
commitd54e430e487d2d76ef14074d09c872ade3abdef7
treee39af66d6ded8a42b80ba16d235a0a5d45bc6c44
parentaf612f7fade3e3ba685a4ba724a16e7397adf3a7
Fix varstr_cmp's special case for UTF8 encoding on Windows so that strings
that are reported as "equal" by wcscoll() are checked to see if they really
are bitwise equal, and are sorted per strcmp() if not.  We made this happen
a couple of years ago in the regular code path, but it unaccountably got
left out of the Windows/UTF8 case (probably brain fade on my part at the
time).  As in the prior set of changes, affected users may need to reindex
indexes on textual columns.

Backpatch as far as 8.2, which is the oldest release we are still supporting
on Windows.
src/backend/utils/adt/varlena.c