Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我搞砸了并创建了一个列作为 varchar(255) 不再足够了。我已经读到 varchar 对 Postgres 上的文本没有性能优势,因此希望以一种安全的方式将 varchar 转换为文本列以保留数据。
对我来说最好的方法是什么?
ALTER TABLE table1 ALTER COLUMN column1 TYPE text;