OSDN Git Service

Make citext's equality and hashing functions collation-insensitive.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Jun 2011 19:24:27 +0000 (15:24 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Jun 2011 19:25:02 +0000 (15:25 -0400)
commit3ebc061c18fcf9447977d232280793e27baf71ff
tree8991ad25419e64e933be98cc3ed2853e71d96ddf
parent1bcdd66315fa1239793134e8284afc272f5975c3
Make citext's equality and hashing functions collation-insensitive.

This is an ugly hack to get around the fact that significant parts of the
core backend assume they don't need to worry about passing collation to
equality and hashing functions.  That's true for the core string datatypes,
but citext should ideally have equality behavior that depends on the
specified collation's LC_CTYPE.  However, there's no chance of fixing the
core before 9.2, so we'll have to live with this compromise arrangement for
now.  Per bug #6053 from Regina Obe.

The code changes in this commit should be reverted in full once the core
code is up to speed, but be careful about reverting the docs changes:
I fixed a number of obsolete statements while at it.
contrib/citext/citext.c
doc/src/sgml/citext.sgml