Re: locale - Mailing list pgsql-hackers

From Dennis Bjorklund
Subject Re: locale
Date
Msg-id Pine.LNX.4.44.0404082109340.4551-100000@zigo.dhs.org
Whole thread Raw
In response to Re: locale  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: locale
List pgsql-hackers
On Thu, 8 Apr 2004, Tom Lane wrote:

> You're missing the point: strcoll() is not going to compare them as
> latin1 strings.  It's going to interpret the bytes as utf-8 strings,
> because that's what LC_CTYPE will tell it to do.

My current understanding of what you are saying now is that LC_CTYPE is
always UTF-8 and all comparisons in the new database are going to be
wrong. This since all strings will be compared as if they where UTF-8.  
LC_CTYPE is per cluster and not per database as some of the other LC_xxxx.

Yes, this actually makes sense. I really hope that this is the way it work
because I think I can understand this. I don't like it, but I can
understand what pg currently do, which is good (unless pg does something
else :-)

Thanks for the explanation.

-- 
/Dennis Björklund



pgsql-hackers by date:

Previous
From: Andrew Hammond
Date:
Subject: Re: rotatelogs integration in pg_ctl
Next
From: s_hawkins@mindspring.com (S. Hawkins)
Date:
Subject: restore of large databases failing--any ideas?