Repository navigation
pg_prism 0.1.9
English
pg_prism 0.1.9 is the first public release. It maintains local DuckDB
mirrors of PostgreSQL Heap tables. Eligible reports use the existing
PostgreSQL connection, table names, and SQL. PostgreSQL commits business
transactions while a background worker applies their changes to the
mirror asynchronously.
- Enable mirrors per database with SQL. Mirrors in the same database
share a DuckDB instance. Physical standbys can build their own mirrors. - Monitor readiness, WAL progress, and storage from SQL. Use
prism.wait_until_applied()when a report must include a specific
committed WAL position. - Inspect the DuckDB operator tree under
PrismMirrorScanin
EXPLAIN. Cost-based routing is experimental and defaults to off.
Binary packages target PostgreSQL 18.7 and 19.0 on macOS arm64, Linux
amd64, and Linux arm64. Each archive includes DuckDB 2.0.1, Quack,
httpfs, license notices, and a build manifest. Download the matching
archive and its SHA-256 file. PostgreSQL 18 requires wal_level = logical.
The package version is 0.1.9. PostgreSQL reports 0.1.8 as the SQL
extension version.
Installation and checksums · Quick start
简体中文
pg_prism 0.1.9 是首次公开发布。它为 PostgreSQL Heap 表维护本地 DuckDB
镜像。符合条件的报表沿用原 PostgreSQL 连接、表名和 SQL。业务事务由 PostgreSQL
提交,后台 worker 将已提交的变更异步同步到镜像。
- 通过 SQL 按库启用。同库的镜像共用一个 DuckDB 实例,物理备库可在本节点构建镜像。
- 通过 SQL 查看镜像就绪状态、WAL 进度和磁盘用量。报表需要看到指定提交时,
可用prism.wait_until_applied()等待对应的 WAL 位置。 - 在
EXPLAIN的PrismMirrorScan下查看 DuckDB 算子树。按代价自动选路
是试验性功能,默认关闭。
安装包覆盖 PostgreSQL 18.7 和 19.0,以及 macOS arm64、Linux amd64 和
Linux arm64。包内包含 DuckDB 2.0.1、Quack、httpfs、许可声明和构建清单。请选择匹配的
归档及 SHA-256 校验文件。PostgreSQL 18 需要设置 wal_level = logical。
安装包版本为 0.1.9,PostgreSQL 显示的 SQL 扩展版本为 0.1.8。