Skip to content
Neon Blog· Zhou Sun·· 2d ago

Neon Deprecates pg_mooncake, Pivots to CDC-Free LTAP Analytics

pg_mooncake is gone, long live mooncake

Key Takeaway

Neon is deprecating the pg_mooncake Postgres extension, saying its CDC replication engine is the wrong way to bridge OLTP and OLAP. The company is instead building LTAP on Lakebase, where the storage layer writes lossless columnar copies to an open lake format with no pipeline and no table opt-in.

Why It Matters

Neon users relying on pg_mooncake columnstore tables for analytics must migrate; LTAP pushes columnar conversion into the storage layer, at the cost of coupling to Lakebase.

Technical Breakdown · Distilled from the original source

Why pg_mooncake Is Being Deprecated

  • pg_mooncake added columnstore tables to Postgres, keeping a low-lag columnar copy, but it was fundamentally a replication engine.
  • A CH-benCHmark TPC-C run showed a 10-row table overwritten repeatedly blew up on the Iceberg side: 100x amplification across ingest, index lookups, and compaction.
  • Rapidly rewriting a small table, or a small part of a big one, is a common OLTP pattern, so the CDC approach served only the 0.1% willing to run a whole stack.
  • Two lessons: cloud providers won't let you install your own Postgres extension, and OLTP customers want Postgres semantics 100%. Neon built Moonlink, an OSS zero-ETL path between Postgres and Iceberg, rebuilt pg_mooncake on it, then stopped.

How LTAP Works

  • In classic Postgres, data lives in files on one machine and leaves only via a query or the replication stream, so every analytics-on-Postgres product is an extraction tool: pg_mooncake extracted from inside as an extension, Moonlink from outside as CDC.
  • Lakebase changes the premise: WAL and data files live in separate, scalable storage, so all data is already out and there is nothing to extract.
  • The columnstore moves into storage: the layer already compacting pages now also writes them to the lake in an open columnar format, losslessly, so original pages can be rebuilt from columns.
  • Postgres keeps reading pages, analytical engines read columns; no setup, no table list, like a checkpoint. A query sees everything committed before it started, and tiny hot tables stay in the page cache.

Agent-Driven Motivation and Search

  • Every agent, session, and branch creates databases and tables; nobody will create a publication and slot for a database born four seconds ago and gone in an hour, so data must be in the lake the moment the table exists.
  • Lakebase Search provides vector and BM25 search directly in Postgres: one table, many ways to read it, nothing to sync.
Source: Neon Blog· neon.com

PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.

Read Official Source

Related PostgreSQL Reference