Re: Queries with Regular Expressions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "John D(dot) Burger" <john(at)mitre(dot)org>
Cc: PostgreSQL-general general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Queries with Regular Expressions
Date: 2006-04-06 20:50:10
Message-ID: 1506.1144356610@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"John D. Burger" <john(at)mitre(dot)org> writes:
>> My queries are utf-8 an the database is SQL_ASCII.

> I suspect the bracketed expression is turning into [aXY], where XY is
> the two-byte sequence corresponding to in UTF8.

That's what it looks like to me. You can hardly blame the database for
this, when you haven't clued it in that you're using UTF8.

> I don't know if a UTF8 database will handle this correctly or not.

I believe that it will work in recent PG releases (7.4 and up).

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2006-04-06 20:52:34 Re: PostgreSQL support on Redhat Advance Server 2.1
Previous Message Jim Nasby 2006-04-06 20:48:37 Re: sort a referenced list