Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Neon 6 min read Announcement easyNovice

pg_mooncake is gone, long live mooncake

Neon is deprecating pg_mooncake and pg_duckdb for new projects, while existing installs keep working and pg_mooncake opens to community contributions. The team concluded that CDC replication from Postgres to Iceberg is the wrong bridge between OLTP and OLAP: a TPC-C run showed a tiny, constantly overwritten table causing roughly 100x amplification across ingest, index lookups and compaction. Their replacement, LTAP, moves the columnstore into Lakebase's disaggregated storage layer, which losslessly writes compacted pages to the lake in open columnar format. Analytical engines can then query every committed table with no pipeline or lag, and hot small tables stay in the page cache.

Assumes: Postgres replication and WALOLTP vs OLAPlakehouse table formats

Related posts

  • Zero-ETL lakehouses for Postgres people

    Neon easyNovice

    Data lakehouses unbundle an OLAP database into six layers: object storage, raw data formats like Parquet, table formats like Iceberg or Delta Lake, a metadata catalog such as Unity Catalog or DuckLake, compute, and query engines like Spark or DuckDB. This layering gives warehouse-like SQL, ACID and snapshots at close to data-lake cost. The explanation is aimed at Postgres users and covers why OLAP systems favour column-oriented, time-chunked and partitioned storage, why HTAP has lost out to zero-ETL sync between separate OLTP and OLAP systems, and how separating storage from compute shapes the stack. Parquet and Iceberg are emerging as favourites, and the Postgres extensions pg_duckdb, pg_lake and pg_mooncake are highlighted as bridges between Postgres and lakehouses.

  • OLTP is expensive, you can ClickHouse it.

    ClickHouse easyNovice

    Data that has stopped changing doesn't need Postgres's ACID machinery, so it can be offloaded to ClickHouse for roughly an order of magnitude better unit economics. Postgres pays for durability, MVCC isolation and synchronous index maintenance on every write: a ~100-byte change touches several 8 KB pages and tens of KB of WAL. It also stores data in uncompressed row pages that thrash the cache once data outgrows RAM. The proposed pattern keeps writes and fresh-row reads in Postgres and replicates settled data to ClickHouse via CDC to serve reads and aggregations, with claimed 10–30× compression and ~100× cheaper aggregations. The cost is slower single-row reads and about a second of eventual consistency. ClickHouse Cloud features (NVMe Postgres, WalShadow CDC, the pg_clickhouse FDW) are pitched as the way to implement it.

  • PostgreSQL + ClickHouse as the Open Source unified data stack

    ClickHouse easyNovice

    An open source stack pairs PostgreSQL as the transactional system of record with ClickHouse for analytics, connected by PeerDB for change data capture and the pg_clickhouse extension, which transparently offloads analytical queries from Postgres to ClickHouse. Two patterns are described: CDC replication for operational analytics on application data, and split-writes for high-volume logs, metrics and events that never need to live in Postgres. Adopting it involves creating a ClickHouse database, replicating via PeerDB, configuring pg_clickhouse and pointing queries at its tables, so application changes stay minimal. A managed version in ClickHouse Cloud swaps PeerDB for ClickPipes and preinstalls the extension.

  • Postgres Meets Analytics: CDC From Neon to ClickHouse Via PeerDB

    Neon mediumAdept

    Neon serverless Postgres can serve as the transactional system of record while ClickHouse handles real-time analytics, with PeerDB streaming changes between them via Postgres logical replication. Setup involves creating a replication-capable user and a publication in Neon, enabling logical replication (wal_level=logical), creating a destination database and a user with insert/alter grants in ClickHouse, then defining peers and a CDC mirror in PeerDB with an initial snapshot and table selection. PeerDB, now owned by ClickHouse, is slated to power the Postgres CDC connector in ClickPipes.

  • OrioleDB public beta: a Postgres storage engine for update-heavy tables

    Supabase mediumAdept

    OrioleDB, an open-source Postgres storage engine plugged in via the Table Access Method, is now in public beta on all Supabase plans. It replaces the heap with an undo log instead of dead tuples, 64-bit transaction IDs, index-organized tables where secondary indexes point to the primary key, lock-free page reads without buffer mapping, and copy-on-write checkpoints with row-level WAL, which removes most VACUUM and bloat problems on update-heavy tables. On a TPC-C-derived DBArena benchmark with data four times larger than memory, it delivered about 1.8x the throughput of heap Postgres on a 32 vCPU instance, but gains shrink for in-memory, read-mostly workloads and heap was ahead at the smallest size. It is not production-ready: no PITR, it must be chosen at project creation, and non-B-tree indexes such as pgvector HNSW run through an experimental bridge.

The quest for software engineering knowledge.

Look:
Layout: