DEV Community

Discussion on: Purify code with data integrity. Part 1: defaults and not-nulls

Collapse
 
bibendi profile image
Misha Merkushin

Cool article! Data migrations under high load are hard. 💪

adding a column with default to the existing table is more complicated, because it will enforce setting the default value for all the rows.

Adding not-null column to existing table

It would be great if you could point out that Postgres 11 has no more these problems.

Collapse
 
dsalahutdinov profile image
Dmitry Salahutdinov • Edited

Michael, thanks for providing the the details, fixed!