From: Tom Lane <tgl@sss.pgh.pa.us>
To: ¤p¨¨ <e9320.tw@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6214: can't change Column COLLATE
Date: Tue, 20 Sep 2011 00:32:17 -0400
Message-ID: <29054.1316493137@sss.pgh.pa.us> (raw)
In-Reply-To: <CAD7ESE3JhFdMDUtK_nG8oq7Mr_e0c7BYJd+utfwVfMvhhipX_Q@mail.gmail.com>
References: <201109190647.p8J6lSTU035042@wwwmaster.postgresql.org>
<18103.1316447909@sss.pgh.pa.us>
<CAD7ESE3JhFdMDUtK_nG8oq7Mr_e0c7BYJd+utfwVfMvhhipX_Q@mail.gmail.com>
=?Big5?B?pHCoqA==?= <e9320.tw@gmail.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.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, e9320.tw@gmail.com
Subject: Re: BUG #6214: can't change Column COLLATE
In-Reply-To: <29054.1316493137@sss.pgh.pa.us>
References: <201109190647.p8J6lSTU035042@wwwmaster.postgresql.org> <18103.1316447909@sss.pgh.pa.us> <CAD7ESE3JhFdMDUtK_nG8oq7Mr_e0c7BYJd+utfwVfMvhhipX_Q@mail.gmail.com> <29054.1316493137@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox