Re: Comparing strings with non-ASCII characters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Artur Rataj <arataj(at)iitis(dot)gliwice(dot)pl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Comparing strings with non-ASCII characters
Date: 2002-11-14 04:18:22
Message-ID: 27036.1037247502@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Artur Rataj <arataj(at)iitis(dot)gliwice(dot)pl> writes:
> Thank you. I needed the ~ operator to match entries in a table being a
> full text index itself. Now I use C locale and rows are sorted outside
> Postgres, the index now is used with the expressions of the form
> ~ '^string.*', but does such expressions work correctly in C locale with
> non-ASCII characters?

Don't see why they wouldn't --- in C locale, bytes are bytes. But you
should experiment before trusting that opinion ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-11-14 04:33:36 Re: 1600 Column limit..
Previous Message Shridhar Daithankar 2002-11-14 04:05:21 Re: Upgrade to dual processor machine?