6min chapter

Postgres FM cover image

pg_upgrade: the tricky and dangerous parts

Postgres FM

CHAPTER

How to Fix Corruption Errors in Postgres Clusters

Postgres has three error codes, you should always monitor and have alerts on which it's x00, xx001, xx002. You can find them using OID of table or index. And so many files, all of them are one gigabyte. So if some writes happened during your upgrade, which you're not propagated to stand by, and then you follow Postgres documentation recipe - R-Sync size only. It sounds very dangerous. But the idea is we keep standbys running and allow them to fully catch up all legs. When you shut down some server primary, a wall sender has some logic to make attempt to write everything to standbys before shutting down. We also

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