5min chapter

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode