Re: BUG #6214: can't change Column COLLATE

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: 小豕 <e9320(dot)tw(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6214: can't change Column COLLATE
Date: 2011-09-20 05:58:57
Message-ID: 1316498337.9044.0.camel@fsopti579.F-Secure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On tis, 2011-09-20 at 00:32 -0400, Tom Lane wrote:
> =?Big5?B?pHCoqA==?= <e9320(dot)tw(at)gmail(dot)com> writes:
> > Use ALTER TABLE item ALTER COLUMN title TYPE character varying(2000)
> > COLLATE pg_catalog."zh_TW.euctw";
> > but, SQL state: 42704 "UTF8" "pg_catalog.zh_TW.euctw" not found
>
> I hope that's not the exact phrasing of the error message ... but
> what it's probably trying to tell you is that you can't use an EUC_TW
> based locale in a database with UTF8 encoding. Try zh_TW.utf8.

It's usually easier to just use COLLATE "zh_TW", and it will pick up the
right encoding.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message eamanuel 2011-09-20 13:13:21 BUG #6215: ODBC - ovelflow with the OIDs - Large Objects
Previous Message Tom Lane 2011-09-20 04:32:17 Re: BUG #6214: can't change Column COLLATE