pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 小豕 <e9320.tw@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6214: can't change Column COLLATE
Date: Tue, 20 Sep 2011 08:58:57 +0300
Message-ID: <1316498337.9044.0.camel@fsopti579.F-Secure.com> (raw)
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>

On tis, 2011-09-20 at 00:32 -0400, Tom Lane wrote:
> =?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.

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




view thread (5+ messages)

Message-ID: <1316498337.9044.0.camel@fsopti579.F-Secure.com>
Permalink:  ../1316498337.9044.0.camel@fsopti579.F-Secure.com/
Also on:    postgresql.org/message-id/1316498337.9044.0.camel@fsopti579.F-Secure.com

 · 

reply

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: peter_e@gmx.net, tgl@sss.pgh.pa.us, e9320.tw@gmail.com
  Subject: Re: BUG #6214: can't change Column COLLATE
  In-Reply-To: <1316498337.9044.0.camel@fsopti579.F-Secure.com>
  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> <1316498337.9044.0.camel@fsopti579.F-Secure.com>

* 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