Postgres: Reduce varchar size and truncate

Posted by williamjones on Stack Overflow See other posts from Stack Overflow or by williamjones
Published on 2010-03-17T22:28:15Z Indexed on 2010/03/17 22:31 UTC
Read the original article Hit count: 378

Filed under:
|
|

I currently have a Postgres 8.4 database that contains a varchar(10000) column. I'd like to change this into a varchar(255) and truncate any data that happens to be too long. How can I do this?

© Stack Overflow or respective owner

Related posts about postgresql

Related posts about varchar