pgsql: Fix varstr_cmp's special case for UTF8 encoding on Windows so - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix varstr_cmp's special case for UTF8 encoding on Windows so
Date
Msg-id 20080313183202.8AD27753C45@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        varlena.c (r1.162 -> r1.162.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/varlena.c?r1=1.162&r2=1.162.2.1)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix varstr_cmp's special case for UTF8 encoding on Windows so
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix varstr_cmp's special case for UTF8 encoding on Windows so