Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 30DF4B5DC00 for ; Tue, 20 Sep 2011 02:59:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 67112-08 for ; Tue, 20 Sep 2011 05:59:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 1A9CEB5DBC4 for ; Tue, 20 Sep 2011 02:59:03 -0300 (ADT) Received: (qmail invoked by alias); 20 Sep 2011 05:59:02 -0000 Received: from fsgw.f-secure.com (EHLO [10.128.133.18]) [193.110.108.33] by mail.gmx.net (mp010) with SMTP; 20 Sep 2011 07:59:02 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX18WzrFtPewWssDgTtWBa5w4NXVG9zBoaXRXWkfT4N XnfpU979IQoRd9 Subject: Re: BUG #6214: can't change Column COLLATE From: Peter Eisentraut To: Tom Lane Cc: =?UTF-8?Q?=E5=B0=8F=E8=B1=95?= , pgsql-bugs@postgresql.org In-Reply-To: <29054.1316493137@sss.pgh.pa.us> References: <201109190647.p8J6lSTU035042@wwwmaster.postgresql.org> <18103.1316447909@sss.pgh.pa.us> <29054.1316493137@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Date: Tue, 20 Sep 2011 08:58:57 +0300 Message-ID: <1316498337.9044.0.camel@fsopti579.F-Secure.com> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.403 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/116 X-Sequence-Number: 31133 On tis, 2011-09-20 at 00:32 -0400, Tom Lane wrote: > =?Big5?B?pHCoqA==?= 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.