• Tom Lane's avatar
    Fix varstr_cmp's special case for UTF8 encoding on Windows so that strings · 5e00913d
    Tom Lane authored
    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.
    5e00913d
varlena.c 65.2 KB