pg_incremental
pg_incremental : Incremental Processing by Crunchy Data
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2850 | pg_incremental | pg_incremental | 1.5.0 |
FEAT | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | pg_catalog |
| See Also | pg_ivm pg_trickle timescaledb pg_duckdb pg_partman pg_ttl_index duckdb_fdw pg_lake |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.5.0 |
18 17 16 15 14 | pg_incremental |
- |
| RPM | PIGSTY | 1.5.0 |
18 17 16 15 14 | pg_incremental_$v |
- |
| DEB | PIGSTY | 1.5.0 |
18 17 16 15 14 | postgresql-$v-pg-incremental |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| el8.aarch64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| el9.x86_64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| el9.aarch64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| el10.x86_64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| el10.aarch64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| d12.x86_64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| d12.aarch64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| d13.x86_64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| d13.aarch64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| u22.x86_64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| u22.aarch64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| u24.x86_64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| u24.aarch64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| u26.x86_64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
| u26.aarch64 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | PIGSTY 1.5.0 | N/A | N/A |
Source
github.com/CrunchyData/pg_incremental
pg_incremental-1.5.0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
- Sources: README, v1.5.0 release
pg_incremental defines exactly-once incremental pipelines for append-only tables and file feeds. Upstream documents three pipeline types: sequence, time-interval, and file-list.
Install And Scheduling Model
The upstream README still documents pg_cron-backed scheduling and installs with:
Pipelines run immediately when created unless execute_immediately := false, then continue on a pg_cron schedule. The README notes that each scheduled execution appears in cron.job_run_details even when no new data is available.
Sequence Pipelines
Use sequence pipelines to process safe ranges of sequence values:
The README documents max_batch_size for limiting how many sequence IDs are processed per run.
Time-Interval Pipelines
Use time windows when the command should receive $1 and $2 as a passed interval:
For export-style jobs, the README documents batched := false so each interval runs separately.
File-List Pipelines
Use file-list pipelines to process newly discovered files:
The v1.5.0 release adds max_batches_per_run to file-list pipelines. The README documents incremental.skip_file() for permanently marking a bad file as processed.
Operations And Monitoring
The README documents:
CALL incremental.execute_pipeline(name): run once if new work exists.SELECT incremental.reset_pipeline(name): reset progress.SELECT incremental.drop_pipeline(name): remove a pipeline.- Views and tables such as
incremental.sequence_pipelines,incremental.time_interval_pipelines,incremental.file_list_pipelines, andincremental.processed_files.
The v1.5.0 release note also calls out a DROP EXTENSION fix for environments where pg_cron is not present.