Re: Collation problem?

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Collation problem?
Date: 2015-04-26 09:48:37
Message-ID: 1430041717.4538.35.camel@linda
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, 2015-04-26 at 11:09 +0200, Bjørn T Johansen wrote:
> Ok, tried to run:
>
> alter table medlem alter column fornavn varchar(50) collate nb_NO.utf8
>
> But I just get:
>
> [Error Code: 0, SQL State: 42601] ERROR: syntax error at or near "varchar"
> (tried without the varchar also..)

ALTER [ COLUMN ] column_name [ SET DATA ] TYPE data_type [ COLLATE
collation ] [ USING expression ]

You need to add the TYPE key word, I think.

Oliver Elphick

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bjørn T Johansen 2015-04-26 10:39:15 Re: Collation problem?
Previous Message Bjørn T Johansen 2015-04-26 09:09:07 Re: Collation problem?