Urgent.News

the world's headlines, one feed

Editions

Health & Medicine

How We Pushed CDC into Postgres

The quest to integrate transactional databases with analytical databases has long been a daunting challenge. The need for reliable, cost-effective, and low-lag data replication compounds this difficulty. At Snowflake, the commitment to addressing this issue became a top priority, leading to the development of a revolutionary Postgres service.

The core of the solution lies in data mirroring, a feature set to be released in public preview. This innovative approach involves pushing changes directly from Postgres into Apache Iceberg tables, enabling transactional consistency and low-cost replication. By leveraging Apache Iceberg tables and object storage like Amazon S3, Snowflake Postgres achieves highly resilient data replication with minimal infrastructure.

The process begins with logical decoding in Postgres, which exposes changes as a stream of row-level operations over a network. However, this method leaves much to be desired, as it fails to account for complex interplays between continuous data, schema changes, snapshots, and failures. To overcome these challenges, Snowflake devised a push-based change data capture system.

This system uses a new Postgres extension called snowflake_cdc to push batches of changes into per-table change logs and a meta log. By decoupling the producer and consumer via object storage, the system effectively eliminates a multitude of infrastructure-related issues, allowing for a simple, reliable, and out-of-the-box experience.

The timeline of the database plays a crucial role in this replication process. Each write to Postgres goes through four stages - decoder, capture, apply, and failure handling. The decoder relies on a historic snapshot of the catalog tables to interpret binary WAL records as logical row changes, even in the face of table changes or drops.

The capture process then appends finalized batches to Iceberg change logs and writes records into the meta log, which in turn is consumed by the apply process in Snowflake. This state machine ensures that schema changes are correctly sequenced into the stream of changes, providing a seamless and reliable replication experience.

Written by urgent.news from Hacker News's reporting — not their text. Machine-written — it may contain errors, so check the original before relying on it.

Read the original at snowflake.com →

More in Health & Medicine

Integrated design of an efficient multi spectral imaging and federated learning framework for precision crop disease diagnosis in low-resource farming communities

Scientific Reports, Published online: 10 August 2026; doi:10.1038/s41598-026-53339-0 Integrated design of an efficient multi spectral imaging and federated learning framework for precision crop…

  • Integrated multi-spectral imaging framework enhances crop disease diagnosis in low-resource areas
  • 3D Spectral-Spatial Convolutional Neural Network achieves 95% accuracy in 0.3 seconds per sample
  • Federated learning improves regional model accuracy to 92% and reduces training time by 40%