PostgreeSQL : How change the size of one column ?

UPDATE pg_attribute 
    SET atttypmod = (your new size) + 4
WHERE attrelid = '(table name)'::regclass
    AND attname = '(column name)';

No worry about the number 4. Exist some reasons for it, only use and you will be fine.

Leave a comment