PostgreSQL Replication - Deepstash
PostgreSQL Replication

PostgreSQL Replication

postgresql.org

3 ideas

·

37 reads

Explore the World's Best Ideas

Join today and uncover 100+ curated journeys from 50+ topics. Unlock access to our mobile app with extensive features.

Server roles in a Postgres cluster

Server roles in a Postgres cluster

  • Primary → Server that can modify data.
  • Standby → Server that replicates the data changes on the primary server.
  • Warm standby → Standby server that doesn't accept connections until it's promoted to a primary server.
  • Hot standby → Standby server that accepts connections and serves read-only queries.

2

14 reads

How data is synchronized in a Postgres cluster

How data is synchronized in a Postgres cluster

There are two ways in which data is synchronized from the primary server to the standby servers:

  1. Synchronous → Write transactions are not committed until all servers commit them.
  2. Asynchronous → Write transactions are first committed on the primary server and then copied to the standby servers.

See the image for pros and cons of each type.

2

13 reads

Built-in replication solutions

Postgres has two built-in asynchronous replication solutions:

  1. Streaming replication, which is a type of WAL Shipping that streams WAL records to standby servers as they are generated.
  2. Logical replication, which constructs logical data modifications (SQL-like commands) from the WAL and streams them to standby servers.

2

10 reads

IDEAS CURATED BY

ocpodariu

Alt account of @ocp. I use it to stash ideas about software engineering

Other curated ideas on this topic:

What is NGINX?

3 ideas

What is REST?

9 ideas

What is REST?

en.wikipedia.org

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates