pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6214: can't change Column COLLATE
5+ messages / 4 participants
[nested] [flat]
* BUG #6214: can't change Column COLLATE
@ 2011-09-19 06:47 yulin liu <e9320.tw@gmail.com>
2011-09-19 15:58 ` Re: BUG #6214: can't change Column COLLATE Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: yulin liu @ 2011-09-19 06:47 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 6214
Logged by: yulin liu
Email address: e9320.tw@gmail.com
PostgreSQL version: PostgreSQL 9.1
Operating system: CentOS release 5.4
Description: can't change Column COLLATE
Details:
can't change Column COLLATE pg_catalog."default" to pg_catalog."zh_TW.euctw"
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #6214: can't change Column COLLATE
2011-09-19 06:47 BUG #6214: can't change Column COLLATE yulin liu <e9320.tw@gmail.com>
@ 2011-09-19 15:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-09-20 01:29 ` Re: BUG #6214: can't change Column COLLATE ¤p¨¨ <e9320.tw@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2011-09-19 15:58 UTC (permalink / raw)
To: yulin liu <e9320.tw@gmail.com>; +Cc: pgsql-bugs
"yulin liu" <e9320.tw@gmail.com> writes:
> can't change Column COLLATE pg_catalog."default" to pg_catalog."zh_TW.euctw"
Use ALTER TABLE ... ALTER COLUMN ... TYPE ... COLLATE ...
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #6214: can't change Column COLLATE
2011-09-19 06:47 BUG #6214: can't change Column COLLATE yulin liu <e9320.tw@gmail.com>
2011-09-19 15:58 ` Re: BUG #6214: can't change Column COLLATE Tom Lane <tgl@sss.pgh.pa.us>
@ 2011-09-20 01:29 ` ¤p¨¨ <e9320.tw@gmail.com>
2011-09-20 04:32 ` Re: BUG #6214: can't change Column COLLATE Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: ¤p¨¨ @ 2011-09-20 01:29 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
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
2011/9/19 Tom Lane <tgl@sss.pgh.pa.us>
> "yulin liu" <e9320.tw@gmail.com> writes:
> > can't change Column COLLATE pg_catalog."default" to
> pg_catalog."zh_TW.euctw"
>
> Use ALTER TABLE ... ALTER COLUMN ... TYPE ... COLLATE ...
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #6214: can't change Column COLLATE
2011-09-19 06:47 BUG #6214: can't change Column COLLATE yulin liu <e9320.tw@gmail.com>
2011-09-19 15:58 ` Re: BUG #6214: can't change Column COLLATE Tom Lane <tgl@sss.pgh.pa.us>
2011-09-20 01:29 ` Re: BUG #6214: can't change Column COLLATE ¤p¨¨ <e9320.tw@gmail.com>
@ 2011-09-20 04:32 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-09-20 05:58 ` Re: BUG #6214: can't change Column COLLATE Peter Eisentraut <peter_e@gmx.net>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2011-09-20 04:32 UTC (permalink / raw)
To: ¤p¨¨ <e9320.tw@gmail.com>; +Cc: pgsql-bugs
=?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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #6214: can't change Column COLLATE
2011-09-19 06:47 BUG #6214: can't change Column COLLATE yulin liu <e9320.tw@gmail.com>
2011-09-19 15:58 ` Re: BUG #6214: can't change Column COLLATE Tom Lane <tgl@sss.pgh.pa.us>
2011-09-20 01:29 ` Re: BUG #6214: can't change Column COLLATE ¤p¨¨ <e9320.tw@gmail.com>
2011-09-20 04:32 ` Re: BUG #6214: can't change Column COLLATE Tom Lane <tgl@sss.pgh.pa.us>
@ 2011-09-20 05:58 ` Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 5+ messages in thread
From: Peter Eisentraut @ 2011-09-20 05:58 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: 小豕 <e9320.tw@gmail.com>; pgsql-bugs
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.
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2011-09-20 05:58 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-09-19 06:47 BUG #6214: can't change Column COLLATE yulin liu <e9320.tw@gmail.com>
2011-09-19 15:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-09-20 01:29 ` ¤p¨¨ <e9320.tw@gmail.com>
2011-09-20 04:32 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-09-20 05:58 ` Peter Eisentraut <peter_e@gmx.net>
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