# Mooncake-Labs/pg_mooncake

Real-time analytics on Postgres tables

Repository: https://github.com/Mooncake-Labs/pg_mooncake
Canonical: https://ross.abutalabs.com/products/pg_mooncake
Homepage: https://mooncake.dev/
Language: Rust
License: MIT
License Family: permissive
Topics: analytics, columnstore, delta-lake, iceberg, lakehouse, parquet, postgresql
Last push: 2026-03-31T05:53:29+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 75, release rhythm 40, longevity 51
- inputs: {"age_days": 727, "days_push": 155, "days_rel": 568, "gap_med": 16.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2003, forks 71 (observed 2026-08-28T04:06:04.514393+00:00)

## What it is
pg_mooncake is a Postgres extension that maintains a columnstore mirror of Postgres tables in Apache Iceberg, enabling fast real-time analytics with sub-second freshness. It uses moonlink for real-time ingestion and DuckDB for query acceleration, while keeping data accessible to other query engines.

## Use cases
- run fast analytical queries on Postgres tables
- create a columnstore mirror of Postgres data in Iceberg
- real-time analytics with sub-second freshness on Postgres
- query lakehouse data from Postgres
- make Postgres data accessible to other query engines via Iceberg
- accelerate OLAP workloads on an existing Postgres database

## When to choose
- you already run Postgres and need fast analytical queries without moving to a separate warehouse
- you want Iceberg-native columnstore data that other engines can also read
- you need real-time ingestion of INSERT/UPDATE/DELETE with sub-second freshness
- you want DuckDB-accelerated analytics inside Postgres

## When to avoid
- you only need simple OLTP workloads with no analytical queries
- you cannot enable logical replication or preload extensions on your Postgres instance
- you need a fully managed cloud warehouse rather than a self-hosted extension
- you run a Postgres version outside the supported 14-18 range

## Facets
- artifact type: plugin
- maturity: active
- function: database, analytics, search-engine, etl
- domain: databases, analytics, big-data
- platform: self-hosted, rust, cpp
- tags: postgres-extension, columnstore, iceberg, lakehouse, duckdb, parquet, delta-lake, real-time-analytics, data-engineering, linux, macos, docker

## Member repositories
- Mooncake-Labs/pg_mooncake (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:04.514393+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:01:42.277373+00:00, confidence not recorded.
  - readme: https://github.com/Mooncake-Labs/pg_mooncake (fetched 2026-08-28T04:06:04.514393+00:00, sha 4eb48ea4a6a5)
  - homepage: https://mooncake.dev/ (fetched 2026-08-29T10:41:37.953098+00:00, sha cb7b033b67a1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
