duckdb_mooncake 0.0.5: Durability-Pinned RPC & DuckDB 2.0 CI
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:
- Install the updated
mooncake.duckdb_extensioninto the local repository configured bymooncake.extension_repositoryand restart PostgreSQL. - Refresh the cached DuckDB extension in your database:
- Reconnect in a fresh session so PostgreSQL loads
v0.0.5, then runALTER 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:
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).