pg_incremental
概览
| 扩展包名 | 版本 | 分类 | 许可证 | 语言 |
|---|---|---|---|---|
pg_incremental | 1.6 | FEAT | PostgreSQL | C |
| ID | 扩展名 | Bin | Lib | Load | Create | Trust | Reloc | 模式 |
|---|---|---|---|---|---|---|---|---|
| 2850 | pg_incremental | 否 | 是 | 否 | 是 | 否 | 否 | pg_catalog |
Package 1.6.1; SQL/control 1.6. Fixes _drop_trigger search_path injection. Sequence pipelines require SELECT or USAGE at creation and execution; file-list functions run as the pipeline executor. pg_cron is optional except for scheduled pipelines.
版本
| 类型 | 仓库 | 版本 | PG 大版本 | 包名 | 依赖 |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.6 | 1817161514 | pg_incremental | - |
| RPM | PIGSTY | 1.6.1 | 1817161514 | pg_incremental_$v | - |
| DEB | PIGSTY | 1.6.1 | 1817161514 | postgresql-$v-pg-incremental | - |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 1.6.1 | PGDG 1.6.1 | PGDG 1.6.1 | N/A | N/A |
| el8.aarch64 | PGDG 1.6.1 | PGDG 1.6.1 | PGDG 1.6.1 | N/A | N/A |
| el9.x86_64 | N/A | N/A | |||
| el9.aarch64 | N/A | N/A | |||
| el10.x86_64 | N/A | N/A | |||
| el10.aarch64 | N/A | N/A | |||
| d12.x86_64 | PIGSTY 1.6.1 d12.x86_64.pg18 : postgresql-18-pg-incremental postgresql-18-pg-incremental_1.6.1-1PGSTY~bookworm_amd64.deb
| PIGSTY 1.6.1 d12.x86_64.pg17 : postgresql-17-pg-incremental postgresql-17-pg-incremental_1.6.1-1PGSTY~bookworm_amd64.deb
| PIGSTY 1.6.1 d12.x86_64.pg16 : postgresql-16-pg-incremental postgresql-16-pg-incremental_1.6.1-1PGSTY~bookworm_amd64.deb
| N/A | N/A |
| d12.aarch64 | PIGSTY 1.6.1 d12.aarch64.pg18 : postgresql-18-pg-incremental postgresql-18-pg-incremental_1.6.1-1PGSTY~bookworm_arm64.deb
| PIGSTY 1.6.1 d12.aarch64.pg17 : postgresql-17-pg-incremental postgresql-17-pg-incremental_1.6.1-1PGSTY~bookworm_arm64.deb
| PIGSTY 1.6.1 d12.aarch64.pg16 : postgresql-16-pg-incremental postgresql-16-pg-incremental_1.6.1-1PGSTY~bookworm_arm64.deb
| N/A | N/A |
| d13.x86_64 | PIGSTY 1.6.1 d13.x86_64.pg18 : postgresql-18-pg-incremental postgresql-18-pg-incremental_1.6.1-1PGSTY~trixie_amd64.deb
| PIGSTY 1.6.1 d13.x86_64.pg17 : postgresql-17-pg-incremental postgresql-17-pg-incremental_1.6.1-1PGSTY~trixie_amd64.deb
| PIGSTY 1.6.1 d13.x86_64.pg16 : postgresql-16-pg-incremental postgresql-16-pg-incremental_1.6.1-1PGSTY~trixie_amd64.deb
| N/A | N/A |
| d13.aarch64 | PIGSTY 1.6.1 d13.aarch64.pg18 : postgresql-18-pg-incremental postgresql-18-pg-incremental_1.6.1-1PGSTY~trixie_arm64.deb
| PIGSTY 1.6.1 d13.aarch64.pg17 : postgresql-17-pg-incremental postgresql-17-pg-incremental_1.6.1-1PGSTY~trixie_arm64.deb
| PIGSTY 1.6.1 d13.aarch64.pg16 : postgresql-16-pg-incremental postgresql-16-pg-incremental_1.6.1-1PGSTY~trixie_arm64.deb
| N/A | N/A |
| u22.x86_64 | PIGSTY 1.6.1 u22.x86_64.pg18 : postgresql-18-pg-incremental postgresql-18-pg-incremental_1.6.1-1PGSTY~jammy_amd64.deb
| PIGSTY 1.6.1 u22.x86_64.pg17 : postgresql-17-pg-incremental postgresql-17-pg-incremental_1.6.1-1PGSTY~jammy_amd64.deb
| PIGSTY 1.6.1 u22.x86_64.pg16 : postgresql-16-pg-incremental postgresql-16-pg-incremental_1.6.1-1PGSTY~jammy_amd64.deb
| N/A | N/A |
| u22.aarch64 | PIGSTY 1.6.1 u22.aarch64.pg18 : postgresql-18-pg-incremental postgresql-18-pg-incremental_1.6.1-1PGSTY~jammy_arm64.deb
| PIGSTY 1.6.1 u22.aarch64.pg17 : postgresql-17-pg-incremental postgresql-17-pg-incremental_1.6.1-1PGSTY~jammy_arm64.deb
| PIGSTY 1.6.1 u22.aarch64.pg16 : postgresql-16-pg-incremental postgresql-16-pg-incremental_1.6.1-1PGSTY~jammy_arm64.deb
| N/A | N/A |
| u24.x86_64 | PIGSTY 1.6.1 u24.x86_64.pg18 : postgresql-18-pg-incremental postgresql-18-pg-incremental_1.6.1-1PGSTY~noble_amd64.deb
| PIGSTY 1.6.1 u24.x86_64.pg17 : postgresql-17-pg-incremental postgresql-17-pg-incremental_1.6.1-1PGSTY~noble_amd64.deb
| PIGSTY 1.6.1 u24.x86_64.pg16 : postgresql-16-pg-incremental postgresql-16-pg-incremental_1.6.1-1PGSTY~noble_amd64.deb
| N/A | N/A |
| u24.aarch64 | PIGSTY 1.6.1 u24.aarch64.pg18 : postgresql-18-pg-incremental postgresql-18-pg-incremental_1.6.1-1PGSTY~noble_arm64.deb
| PIGSTY 1.6.1 u24.aarch64.pg17 : postgresql-17-pg-incremental postgresql-17-pg-incremental_1.6.1-1PGSTY~noble_arm64.deb
| PIGSTY 1.6.1 u24.aarch64.pg16 : postgresql-16-pg-incremental postgresql-16-pg-incremental_1.6.1-1PGSTY~noble_arm64.deb
| N/A | N/A |
| u26.x86_64 | PIGSTY 1.6.1 u26.x86_64.pg18 : postgresql-18-pg-incremental postgresql-18-pg-incremental_1.6.1-1PGSTY~resolute_amd64.deb
| PIGSTY 1.6.1 u26.x86_64.pg17 : postgresql-17-pg-incremental postgresql-17-pg-incremental_1.6.1-1PGSTY~resolute_amd64.deb
| PIGSTY 1.6.1 u26.x86_64.pg16 : postgresql-16-pg-incremental postgresql-16-pg-incremental_1.6.1-1PGSTY~resolute_amd64.deb
| N/A | N/A |
| u26.aarch64 | PIGSTY 1.6.1 u26.aarch64.pg18 : postgresql-18-pg-incremental postgresql-18-pg-incremental_1.6.1-1PGSTY~resolute_arm64.deb
| PIGSTY 1.6.1 u26.aarch64.pg17 : postgresql-17-pg-incremental postgresql-17-pg-incremental_1.6.1-1PGSTY~resolute_arm64.deb
| PIGSTY 1.6.1 u26.aarch64.pg16 : postgresql-16-pg-incremental postgresql-16-pg-incremental_1.6.1-1PGSTY~resolute_arm64.deb
| N/A | N/A |
构建
您可以使用 pig build 命令构建 pg_incremental 扩展的 RPM / DEB 包:
安装
您可以直接安装 pg_incremental 扩展包的预置二进制包,首先确保 PGDG 和 PIGSTY 仓库已经添加并启用:
使用 pig 或者是 apt/yum/dnf 安装扩展:
创建扩展:
用法
来源:
pg_incremental 为只追加表和文件数据源定义恰好一次语义的增量流水线。它依赖 pg_cron,上游核验矩阵覆盖 PostgreSQL 17–18,支持序列、时间区间和文件列表三类流水线。
安装与调度
流水线默认创建时立即执行,随后由 pg_cron 调度;需要推迟首次运行时设置 execute_immediately := false。进度更新与流水线命令在同一事务中提交,命令失败不会推进已处理范围。
流水线类型
序列流水线传入安全的 $1/$2 范围,时间流水线传入区间边界,文件列表流水线传入新发现的文件。max_batch_size、max_batches_per_run 和 batched := false 可调整批次行为。incremental.execute_pipeline、reset_pipeline、drop_pipeline 以及状态视图用于运维控制。
1.6.1 安全修复
1.6.1 修复 _drop_trigger 的 search_path 注入问题,要求创建和执行序列流水线的角色拥有序列 SELECT 或 USAGE 权限,并让文件列表函数以调用者身份执行。升级前应复核对象所有权和授权;本地包事实与该上游发行版分开维护。
这个页面对您有帮助吗?
感谢反馈,我们会据此改进这篇文档。
哪里没有解决?(可选)