PostgreSQL Streaming Replication Setup
PostgreSQL Streaming Replication Setup
Streaming replication in PostgreSQL involves creating an active copy of a database on a database instance This copy, commonly called a
To ensure that WAL segments are not discarded before being sent to all consumers, PostgreSQL uses logical replication slots to track which data was sent to pg_create_logical_replication_slot() is a system function for creating a logical replication slot pg_create_logical_replication_slot() was added in PostgreSQL
amb slot ทดลองเล่น The concept of replication slots was introduced in PostgreSQL and was created to prevent a primary instance to delete WAL that a replica Setup using CDC · Provide additional REPLICATION permissions to read-only user · Enable logical replication on your Postgres database · Create a replication slot