Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 33 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,27 +66,39 @@ ColdFront runs inside PostgreSQL and rewrites each statement to the correct
tier, so the application sees one relation:

```text
Application
│
SELECT / INSERT / UPDATE / DELETE
against one relation: "events"
│
PostgreSQL 16 / 17 / 18
events VIEW: reads union hot + cold
coldfront extension: routes writes by tier
┌─────────────┴───────────────┐
│ │
hot tier cold tier
_events: native PostgreSQL pg_duckdb: in-process DuckDB
range partitions Iceberg reads + writes
│ │
│ Lakekeeper (Iceberg REST catalog)
│ │
│ object store, S3 / Azure / GCS
│ (Parquet data + Iceberg metadata)
│ ▲
└──── Archiver (Go, cron) ────┘
moves partitions past the hot window: hot → cold
Application
│
SELECT / INSERT / UPDATE / DELETE
on one relation: "events"
│
┌────────────────────────────▼─────────────────────────────┐
│ PostgreSQL 16 / 17 / 18 │
│ │
│ events view: reads return hot + cold rows │
│ coldfront extension: routes writes by tier. │
└───────────┬─────────────────────────────────┬────────────┘
│ │
HOT TIER COLD TIER
recent rows, local disk older rows, object storage
│ │
┌──────────▼───────────┐ ┌────────────▼────────────┐
│ _events │ │ pg_duckdb │
│ native PostgreSQL │ │ in-process DuckDB │
│ range partitions │ │ Iceberg reads + writes │
└──────────┬───────────┘ └────────────┬────────────┘
│ │
│ ┌───────────▼─────────────┐
│ │ Lakekeeper │
│ │ Iceberg REST catalog │
│ └───────────┬─────────────┘
│ │
│ │
│ ┌───────────▼─────────────────────┐
│ │ Object store, S3 / Azure / GCS │
│ │ │
└── Archiver (Go) ───▶│(Parquet data + Iceberg metadata)│
└─────────────────────────────────┘
cron job: moves partitions out of the hot window: hot -> cold
```

## Installation
Expand Down
54 changes: 33 additions & 21 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,39 @@ ColdFront runs inside PostgreSQL and rewrites each statement to the correct
tier, so the application sees one relation:

```text
Application
│
SELECT / INSERT / UPDATE / DELETE
against one relation: "events"
│
PostgreSQL 16 / 17 / 18
events VIEW: reads union hot + cold
coldfront extension: routes writes by tier
┌─────────────┴───────────────┐
│ │
hot tier cold tier
_events: native PostgreSQL pg_duckdb: in-process DuckDB
range partitions Iceberg reads + writes
│ │
│ Lakekeeper (Iceberg REST catalog)
│ │
│ object store, S3 / Azure / GCS
│ (Parquet data + Iceberg metadata)
│ ▲
└──── Archiver (Go, cron) ────┘
moves partitions past the hot window: hot → cold
Application
│
SELECT / INSERT / UPDATE / DELETE
on one relation: "events"
│
┌────────────────────────────▼─────────────────────────────┐
│ PostgreSQL 16 / 17 / 18 │
│ │
│ events view: reads return hot + cold rows │
│ coldfront extension: routes writes by tier. │
└───────────┬─────────────────────────────────┬────────────┘
│ │
HOT TIER COLD TIER
recent rows, local disk older rows, object storage
│ │
┌──────────▼───────────┐ ┌────────────▼────────────┐
│ _events │ │ pg_duckdb │
│ native PostgreSQL │ │ in-process DuckDB │
│ range partitions │ │ Iceberg reads + writes │
└──────────┬───────────┘ └────────────┬────────────┘
│ │
│ ┌───────────▼─────────────┐
│ │ Lakekeeper │
│ │ Iceberg REST catalog │
│ └───────────┬─────────────┘
│ │
│ │
│ ┌───────────▼─────────────────────┐
│ │ Object store, S3 / Azure / GCS │
│ │ │
└── Archiver (Go) ───▶│(Parquet data + Iceberg metadata)│
└─────────────────────────────────┘
cron job: moves partitions out of the hot window: hot -> cold
```

## Quickstart
Expand Down
Loading