From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bjoern Metzdorf <bm(at)turtle-entertainment(dot)de> |
Cc: | "Pgsql-Admin (E-mail)" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: invalid multibyte character for locale |
Date: | 2005-02-23 23:58:47 |
Message-ID: | 23514.1109203127@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-hackers pgsql-patches |
Bjoern Metzdorf <bm(at)turtle-entertainment(dot)de> writes:
> CREATE INDEX foobar_uvalue_key ON foobar USING btree
> (upper((value)::text));
> ERROR: invalid multibyte character for locale
> HINT: The server's LC_CTYPE locale is probably incompatible with the
> database encoding.
> I forgot to say that I am using UNICODE for database encoding (initdb -E
> UNICODE and createdb -E UNICODE).
Well, in that case your encoding is indeed at variance with your locale
setting ;-). Perhaps you should declare the encoding as SQL_ASCII.
The immediate problem is that mbstowcs() is being called and it
evidently doesn't know what to do in C locale. SQL_ASCII (or any
single-byte encoding) would bypass this code path and avoid the
error.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | S. C. | 2005-02-24 03:25:23 | Statistics Collector & Query Optimizer, any relation? |
Previous Message | Indibil | 2005-02-23 23:15:08 | Re: PostgreSQL 8.0.1 problem |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-02-24 01:36:07 | Re: [PATCHES] [pgsql-hackers-win32] Repleacement for src/port/snprintf.c |
Previous Message | Christopher Browne | 2005-02-23 22:58:38 | Finding if old transactions are running... |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-02-24 00:31:05 | Re: [PATCHES] A way to let Vacuum warn if FSM settings are low. |
Previous Message | Ron Mayer | 2005-02-23 23:16:07 | A way to let Vacuum warn if FSM settings are low. |