Re: lc_collate issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Cody Pisto <cpisto(at)rvweb(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: lc_collate issue
Date: 2007-08-25 01:18:35
Message-ID: 24663.1188004715@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Cody Pisto <cpisto(at)rvweb(dot)com> writes:
> If initdb was done with a C locale, and thus lc_collate and friends
> where all C, but the database and client encoding was set to UTF-8,
> would postgres convert data on the fly from UTF-8(storage) to ASCII for
> sorting or would things just blow up when a >1 byte character hit the mix?

No, C locale just sorts the bytes. It won't "blow up". Whether it will
give you a sort ordering you like for multibyte characters is a
different question.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2007-08-25 01:29:18 Re: [PERFORM] Partioning tsearch2 a table into chunks and accessing via views
Previous Message Phoenix Kiula 2007-08-25 01:15:54 Re: Can tsearch do some basic text mining