Skip to content

Releases

pg_prism 0.1.11

Choose a tag to compare

@yjhatfdu yjhatfdu released this 02 Dec 03:12
480fad5

English

  • Choose the DuckDB write statement per table and CDC batch. Insert-only
    batches use INSERT, delete-only batches use DELETE, and update or mixed
    batches use MERGE with the full primary key.
  • Mirror updates treat +0.0 and -0.0 as equal for real and
    double precision. A sign-only change may retain the previous sign.
  • Package CI verifies statement selection, same-key delete and reinsert
    across transactions, floating-point values, restart, and TRUNCATE.

Packages cover PostgreSQL 18.7 and 19.0 on macOS arm64, Linux amd64, and Linux arm64. Each archive includes DuckDB 2.0.1, Quack, and httpfs. Download the archive and its SHA-256 file for your PostgreSQL version and platform.

To upgrade from 0.1.10, stop PostgreSQL, install the matching package, and restart. The SQL extension version remains 0.1.8.

Installation and checksums · CDC operations

简体中文

  • 按表和 CDC 批次选择 DuckDB 写入语句。纯插入用 INSERT,纯删除用
    DELETE,更新和混合批次按完整主键执行 MERGE。
  • 镜像更新将 real 和 double precision 的 +0.0 与 -0.0 视为
    同一数值。只改变零的符号时,镜像可能保留原符号。
  • 打包 CI 验证写入分流、跨事务同键删再插、浮点值、重启和 TRUNCATE。

安装包覆盖 PostgreSQL 18.7 和 19.0,以及 macOS arm64、Linux amd64 和 Linux arm64。包内包含 DuckDB 2.0.1、Quack 和 httpfs。请下载与 PostgreSQL 版本和平台匹配的归档及 SHA-256 校验文件。

从 0.1.10 升级时,停止 PostgreSQL,安装对应的包后重启。SQL 扩展版本仍为 0.1.8。

安装与校验 · CDC 运维

pg_prism 0.1.10

Choose a tag to compare

@yjhatfdu yjhatfdu released this 01 Dec 05:35

English

  • Push supported fact-table aggregates to DuckDB before joining unmirrored
    lookup tables or evaluating scalar lookups in PostgreSQL.
  • For reports grouped by a lookup name, aggregate by join key in DuckDB and
    combine matching names in PostgreSQL. The rewrite preserves exact
    averages, aggregate filters, HAVING, and left-join NULL groups.
  • Extend pushdown for reporting SQL, including supported percentile
    aggregates, calendar grouping, case-insensitive matching, and rounded
    averages in HAVING.

Choose the archive and SHA-256 file for PostgreSQL 18.7 or 19.0 on macOS arm64, Linux amd64, or Linux arm64. Each package includes DuckDB 2.0.1, Quack, and httpfs. PostgreSQL 18 requires wal_level = logical.

To upgrade from 0.1.9, stop PostgreSQL, install the matching package, and restart. The package replaces both PostgreSQL modules together. The SQL extension version remains 0.1.8.

Installation and checksums · Query routing

简体中文

  • 支持先在 DuckDB 汇总事实表,再由 PostgreSQL 关联未镜像的字典表或执行标量查找。
  • 按字典名称分组时,DuckDB 先按关联键聚合,PostgreSQL 再合并同名分组,
    保留精确平均值、聚合过滤、HAVING 和左连接的 NULL 分组语义。
  • 扩展报表 SQL 的下推范围,覆盖支持的百分位聚合、日历分组、不区分大小写的匹配,
    以及 HAVING 中的平均值舍入。

请选择匹配 PostgreSQL 18.7 或 19.0、macOS arm64、Linux amd64 或 Linux arm64 的归档和 SHA-256 校验文件。安装包包含 DuckDB 2.0.1、Quack 和 httpfs。PostgreSQL 18 需要配置 wal_level = logical。

从 0.1.9 升级时,先停止 PostgreSQL,再安装对应的包并重启。安装包会同时替换两个 PostgreSQL 模块。SQL 扩展版本仍为 0.1.8。

安装与校验 · 查询路由

pg_prism 0.1.9

Choose a tag to compare

@yjhatfdu yjhatfdu released this 28 Nov 08:58

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 PrismMirrorScan in
    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。

安装与校验 · 快速开始