How not to change PostgreSQL column type

from blog boringSQL | Supercharge your SQL & PostgreSQL powers, | ↗ original
↗ original
One of the surprises that comes with developing applications and operating a database cluster behind them is the discrepancy between practice and theory, development environment and the production. A perfect example of such a mismatch is changing a column type. The conventional knowledge on how to change a column type in PostgreSQL (and other...