d/postgresqlAahmadAug 20, 2026
How do you handle schema migrations that lock a hot table?

Adding a column with a default rewrites the table and locks it. I've used the NOT VALID constraint trick, but it's a lot of steps. Is there a simpler safe path?

2
0 comments

Comments (0)