# duckdb_mooncake 0.0.5: Durability-Pinned RPC & DuckDB 2.0 CI

> duckdb_mooncake v0.0.5 targets DuckDB v2.0.1, pins moonlink_ffi to Moonlink v0.3.0-pgsty.2, aligns DuckDB 2.0 CI tooling with Alpine/musl support, and adds standalone SQLLogicTest coverage.

---

LLMS index: [llms.txt](/llms.txt)

---

**v0\.0\.5 · 2026-11-23**
- [View release](https://github.com/pgsty/duckdb_mooncake/releases/tag/v0.0.5)
- [Source · tar\.gz](https://github.com/pgsty/duckdb_mooncake/archive/refs/tags/v0.0.5.tar.gz)
- [Source · zip](https://github.com/pgsty/duckdb_mooncake/archive/refs/tags/v0.0.5.zip)
- [pgsty\/duckdb\_mooncake](https://github.com/pgsty/duckdb_mooncake)

**`duckdb_mooncake v0.0.5`** targets **DuckDB `v2.0.1`** (`8d78114e90`) and pins its Rust RPC client (`moonlink_ffi`) to [**`Moonlink v0.3.0-pgsty.2`**](/release/moonlink-0.3.0-pgsty.2/) (`bae6634b`), matching the snapshot durability fix shipped in [`pg_mooncake 0.3.3`](/release/pg-mooncake-0.3.3/) and [`pg_mooncake 0.3.4`](/release/pg-mooncake-0.3.4/).

## Summary of Changes {#changes}

| Area | Change |
| :--- | :--- |
| Durability-pinned RPC client | Pins `moonlink_ffi` to `Moonlink v0.3.0-pgsty.2` (`bae6634b`) and bumps `EXTENSION_VERSION` to `v0.0.5`, allowing `pg_mooncake 0.3.3` and `0.3.4` to enforce that stale `v0.0.3` / `v0.0.4` scanners are refreshed before upgrading. |
| DuckDB 2.0 CI alignment | Synchronizes the build and formatting workflows (`.github/workflows/MainDistributionPipeline.yml`, `CMakeLists.txt`) with the same pinned DuckDB 2.0 maintenance revision used by the `extension-ci-tools` submodule. |
| Expanded build matrix | Adds **Alpine/musl** to the GitHub Actions distribution build matrix alongside standard Linux and macOS targets ([CI run #45157587099](https://github.com/pgsty/duckdb_mooncake/actions/runs/45157587099)). |
| Standalone SQLLogicTest | Expands `test/sql/mooncake.test` to load the freshly built `mooncake.duckdb_extension` directly inside an isolated DuckDB test home, verify loaded extension registration, and exercise `ATTACH ... (TYPE mooncake, ...)` option validation. |
{.wide .expand}

## Pairing & Cache Refresh in PostgreSQL {#pairing}

`duckdb_mooncake v0.0.5` is the required scanner for both [`pg_mooncake 0.3.3`](/release/pg-mooncake-0.3.3/) (with `pg_duckdb 1.2.1`) and [`pg_mooncake 0.3.4`](/release/pg-mooncake-0.3.4/) (which accepts `pg_duckdb >= 1.2.1`, with reference build `1.2.2`, both embedding DuckDB `v2.0.1`). If an operator deploys `pg_mooncake 0.3.4` with a newer `pg_duckdb` embedding a different DuckDB engine version, build `duckdb_mooncake v0.0.5` against that target engine and platform.

When upgrading an existing PostgreSQL cluster from `v0.0.3` or `v0.0.4`:

1. Install the updated `mooncake.duckdb_extension` into the local repository configured by `mooncake.extension_repository` and restart PostgreSQL.
2. Refresh the cached DuckDB extension in your database:
   ```sql
   SELECT duckdb.raw_query(
       format('FORCE INSTALL mooncake FROM %L', current_setting('mooncake.extension_repository'))
   );
   ```
3. Reconnect in a fresh session so PostgreSQL loads `v0.0.5`, then run `ALTER EXTENSION pg_mooncake UPDATE TO '0.3.4';` (or `'0.3.3'`).

## Standalone DuckDB Usage & Verification {#standalone}

Outside PostgreSQL, a standalone DuckDB `v2.0.1` session configured to allow unsigned local extensions can load `mooncake.duckdb_extension` directly and attach to a running Moonlink Unix socket:

```sql
LOAD '/absolute/path/to/mooncake.duckdb_extension';
ATTACH DATABASE 'mooncake' (
    TYPE mooncake,
    URI '/var/lib/postgresql/data/pg_mooncake/moonlink.sock',
    DATABASE 'postgres'
);
SELECT * FROM mooncake.public.trades LIMIT 10;
```

The standalone scanner binary built by GitHub Actions ([CI run #45157587099](https://github.com/pgsty/duckdb_mooncake/actions/runs/45157587099)) was verified on both Linux and macOS, including loading inside `pg_mooncake` integration runs on Debian ARM64 (`PostgreSQL 18.7`) and macOS ARM64 (`PostgreSQL 19.0`).

---

Backlinks:

- [duckdb_mooncake 0.0.4: Isolated Scan Connections & DuckDB 2.0.1](/release/duckdb-mooncake-0.0.4/)
- [moonlink 0.3.0-pgsty.1: Mirror Generations, Iceberg 0.11 & Security Audit](/release/moonlink-0.3.0-pgsty.1/)
- [moonlink 0.3.0-pgsty.2: Durable Iceberg Snapshot Acknowledgements](/release/moonlink-0.3.0-pgsty.2/)
- [pg_mooncake 0.3.3: Durable Snapshot Acknowledgements](/release/pg-mooncake-0.3.3/)
- [pg_mooncake 0.3.4: pg_duckdb 1.2.1+ Support & Direct Upgrades](/release/pg-mooncake-0.3.4/)
