Overcoming Pitfalls of Postgres Logical Decoding
At PeerDB, we are building a fast and simple way to replicate data from Postgres to data warehouses like Snowflake, ClickHouse etc. and queues such as Kafka, Redpanda etc. We implement Postgres Change Data Capture (CDC) to reliably replicate changes from Postgres to other data stores. Postgres Logical Decoding is a building block of Postgres CDC. It enables users to stream changes on Postgres as a sequence of logical operations like INSERTs, UPDATEs, and DELETEs. Logical Decoding has evolved quite a bit in the past few years in Postgres. However, there are a few quirks that users need to overcome. In this blog, we will summarize common issues and learnings from over 20 customers replicating more than 300 TB of data per month with logical decoding. A logical replication slot captures changes in the Postgres Write-Ahead Log (WAL) and streams them in a human-readable format to the client. A common issue with logical decoding is unexpected replication slot growth, which can risk filling up
At PeerDB, we are building a fast and simple way to replicate data from Postgres to data warehouses like Snowflake, ClickHouse etc. and queues such as Kafka, Redpanda etc. We implement Postgres Change Data Capture (CDC) to reliably replicate changes from Postgres to other data stores. Postgres Logical Decoding is a building block of Postgres CDC. It enables users to stream changes on Postgres as a sequence of logical operations like INSERTs, UPDATEs, and DELETEs. Logical Decoding has evolved quite a bit in the past few years in Postgres. However, there are a few quirks that users need to…
saved by
related reading
- Exploring versions of the Postgres logical replication protocolblog.peerdb.io
- Patching the PostgreSQL JDBC Driverengineering.zalando.com
- PostgreSQL: Documentation: 18: 54.5. Logical Streaming Replication Protocolpostgresql.org
- Flink CDC for Postgres: Lessons Learned | sap1ens.comsap1ens.com
- PostgreSQL CDC - RisingWavedocs.risingwave.com
- Schedule | POSETTE: An Event for Postgres 2024 - Citus Datacitusdata.com
- debezium-examples/postgres-toast at main · debezium/debezium-examplesgithub.com
- Ingest data from self-hosted PostgreSQL | Materialize Documentationmaterialize.com
- Postgres WAL Files and Sequence Numbers | Crunchy Data Blogcrunchydata.com
- Debezium and TimescaleDBdebezium.io
- 67.4. Two-Phase Transactionspostgresql.org
- PostgreSQL: Documentation: 18: 54.1. Overviewpostgresql.org