Postgres FM cover image

Postgres FM

Replication

Dec 16, 2022
The hosts discuss the various options for replication in PostgreSQL, including physical and logical replication. They explore offloading reads, implementing sticky reads, and using replicas for read-only parts of applications. They mention risks and downsides of using Postgres for replication, limitations and future improvements of logical replication, and differences between physical and logical replication in Postgres.
37:56

Podcast summary created with Snipd AI

Quick takeaways

  • Replication is crucial for ensuring high availability, scaling resources, and providing additional data protection or recovery.
  • Physical replication is reliable and suitable for scenarios where all tables in the database are needed, while logical replication is recommended when the destination database differs from the source.

Deep dives

The Importance of Replication

Replication is needed in three main areas: ensuring high availability to minimize downtime, scaling resources by offloading reads to different servers, and as a means of additional data protection or recovery. Replication is crucial in cloud environments where downtime must be minimized, and it is also useful for scenarios where one machine is not sufficient to handle resource saturation. However, replication should not be relied upon solely as a backup solution, as it lacks the ability for point-in-time recovery or data restoration. Physical replication is a reliable and widely used method that involves replaying all changes made to the primary database on standby servers. Logical replication, on the other hand, is based on capturing wall records and is suited for use cases where the destination database differs from the source.

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