Re: Per-column collation - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Per-column collation
Date
Msg-id 1292192020.15408.9.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: Per-column collation  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On mån, 2010-12-06 at 21:26 +0200, Peter Eisentraut wrote:
> 
> > * contrib/citext raises an encoding error when COLLATE is specified
> > even if it is the collation as same as the database default.
> > We might need some special treatment for C locale.
> > =# SHOW lc_collate;  ==> C
> > =# SELECT ('A'::citext) = ('a'::citext);  ==> false
> > =# SELECT ('A'::citext) = ('a'::citext) COLLATE "C";
> > ERROR:  invalid multibyte character for locale
> > HINT:  The server's LC_CTYPE locale is probably incompatible with
> the
> > database encoding.
> 
> OK, I can reproduce that.  That's fallout from the lc_ctype_is_c()
> optimization that I removed, as explained in another email.  I'll have
> to think about that again.

This is fixed in the 20101213 patch I'm about to send out.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Per-column collation
Next
From: Peter Eisentraut
Date:
Subject: Re: Per-column collation