What is the expand/contract pattern and how does it apply to schema changes in Postgres? Let's say you want to convert a column from text to integer, something like:

ALTER TABLE foo ALTER COLUMN col TYPE INTEGER USING col::integer;

#postgresql

Comments