Skip to content

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.

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 (bae6634b), matching the snapshot durability fix shipped in pg_mooncake 0.3.3 and pg_mooncake 0.3.4.

Summary of 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).
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.

Pairing & Cache Refresh in PostgreSQL

duckdb_mooncake v0.0.5 is the required scanner for both pg_mooncake 0.3.3 (with pg_duckdb 1.2.1) and 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:
    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

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:

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) 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).

Table reader