Skip to content

pg_mooncake v0.3.3

Choose a tag to compare

@Vonng Vonng released this 23 Nov 10:52
· 4 commits to main since this release

pg_mooncake 0.3.3 fixes a durability issue in CALL mooncake.create_snapshot(...). The old worker could return before the last source commit had reached Iceberg. After upgrading, take a fresh snapshot of each mirror before using it for a backup or migration. If an earlier restore differs from the source, compare against the authoritative source and rebuild the affected mirror as needed.

The source release supports PostgreSQL 15–19 and pins pg_duckdb 1.2.1, DuckDB v2.0.1, scanner v0.0.5, Moonlink v0.3.0-pgsty.2 and pgrx 0.20.0. The Rust toolchain is 1.99.1.

Upgrade

  • From 0.3.1 or 0.3.2, install the matching libraries and scanner, configure the local scanner repository and restart PostgreSQL. Refresh the cached scanner, then reconnect and run ALTER EXTENSION pg_mooncake UPDATE TO '0.3.3' in each database. The direct update from 0.3.2 preserves mirror registrations and rejects a loaded v0.0.4 scanner.
  • From the WAL-based PGSTY 0.3.0, stop source writes, verify the old snapshots against their sources and preserve the complete storage backup and old _wal offline before starting the new worker. Follow the per-database upgrade procedure.

Source and verification

Download pg_mooncake-0.3.3-source.tar.gz with SHA256SUMS and run sha256sum -c SHA256SUMS (shasum -a 256 -c SHA256SUMS on macOS). The named tarball contains all pinned Git submodules. Cargo and CMake require third-party sources or a populated build cache. The tagged build instructions include the alternative recursive Git checkout.

The SHA-256 of the recursive source tarball is 4a96f2a7023fac2555760ce055537a7203137526528b9f19626ada1964f24b68.

Two independent checkouts produced identical source archives. Fresh installations on PostgreSQL 18.7 (Debian ARM64) and 19.0 (macOS ARM64) each passed ten SQL regressions, three version guards, fifteen integration checks and two checks after a real restart. Both rejected a run without a restart. The Linux run loaded the scanner built by GitHub Actions. Release-mode Cargo checks also passed against PG15, PG16 and PG17.

A separate PG19 upgrade from 0.3.2 rejected a stale scanner, accepted the documented cache refresh and preserved mirror registration IDs and generations. Source and mirror rows matched after new writes, a forced snapshot and restart.

On November 23, 2026, cargo audit found zero vulnerability advisories across all three complete lockfiles using RustSec 43b5554d9d64ca91c8d0839b7150d4f8ee490cdc. It reported five unmaintained-dependency advisories for the PostgreSQL extension, three for Moonlink and two for the scanner FFI. A strict cargo deny check with no advisory ignores reported the same maintenance notices.