DEV Community

Prachi
Prachi

Posted on

PostgreSQL Replication (Part 3)

Modes of Replication in PostgreSQL Database :

Synchronous mode of Replication : Transactions on the master database in this mode are not considered complete until all replicas have received the modifications. For the transactions to successfully complete on the master, all of the replica servers must be up at all times.

Asynchronous mode of Replication : When changes have only been made on the master server in this mode, transactions on the master server can be deemed complete. Later, these modifications are reproduced to the copies.

Types of PostgreSQL Database Replication?

Physical Replication of PostgreSQL Database :
In Physical replication, we deal with with files and directories.
Physical replication is done at file system level or disk level.
Logical Replication of PostgreSQL Database :
In Logical Replication, we deal with databases, tables, and DML operations.
Logical replication is done at the database cluster level.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay