[9.1beta1] UTF-8/Regex Word-Character Definition excluding accented letters - Mailing list pgsql-general

From David Johnston
Subject [9.1beta1] UTF-8/Regex Word-Character Definition excluding accented letters
Date
Msg-id 002501cc1f2e$af704930$0e50db90$@yahoo.com
Whole thread Raw
Responses Re: [9.1beta1] UTF-8/Regex Word-Character Definition excluding accented letters  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general

PostgreSQL 9.1beta1, compiled by Visual C++ build 1500, 64-bit (EnterpriseDB Install Executable)

 

CREATE DATABASE betatest

                TEMPLATE template0

                ENCODING 'UTF8'

                LC_COLLATE 'C'

                LC_CTYPE 'C';

               

[connect to database]

 

CREATE DOMAIN idcode AS text

                NOT NULL CHECK (VALUE ~* '^\w[-:\w]*$')

;

 

SELECT 'AAAAAéaaaaa'::idcode; // -> SQL Error: ERROR:  value for domain idcode violates check constraint "idcode_check" (note the accented “e” between all the “A”s)

 

This is running just fine against a 9.0 install on the same machine.  [\w] is Unicode aware and server encoding is set (and confirmed via SHOW) to be “UTF8”.

 

David J.

 

 

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: UTC4115FATAL: the database system is in recovery mode
Next
From: salah jubeh
Date:
Subject: time estimation for a test