Increasing the size of character varying type in postgres without data loss

后端 未结 6 2091
春和景丽
春和景丽 2021-02-06 20:54

I need to increase the size of a character varying(60) field in a postgres database table without data loss.

I have this command

alter table client_deta         


        
6条回答
  •  迷失自我
    2021-02-06 21:32

    From PostgreSQL 9.2 Relase Notes E.15.3.4.2

    Increasing the length limit for a varchar or varbit column, or removing the limit altogether, no longer requires a table rewrite.

提交回复
热议问题