Postgres FM cover image

Zero-downtime migrations

Postgres FM

CHAPTER

The Complexity of PostgreSQL

Pre postgres 11, when we create a new table with default that caused full table rewrite. Post-casset needs to be fully scanned at creation during this time,. It holds this very expensive lock and can be done in two phases. So first you say not valid constraint, then you have second check type of our problem. You need a full scan before creating it, if you're going to do it properly. Before post- casset level is terrible absolutely terrible. Period. But now... Yeah I like the term 'online operation' A good friend of mine who gave me this term from SQL World as well: "I like it online"

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner