Logovskii Dmitrii
Logovskii Dmitrii

Reputation: 2943

How to change column collation postgresql

I have a database with default LC_COLLATE=C but I want to have different COLLATION to one column in my table, how to do it?

Upvotes: 13

Views: 18661

Answers (1)

Logovskii Dmitrii
Logovskii Dmitrii

Reputation: 2943

You can just alter column table

ALTER TABLE users ALTER COLUMN name SET DATA TYPE character varying(255) COLLATE "en_US"

Upvotes: 29

Related Questions