Getting Started with PipelineDB
PipelineDB extends PostgreSQL with streaming primitives—continuous views over unbounded input. Although the upstream project was discontinued, the concepts remain useful.
Install & configure
PipelineDB ships as an extension. Install the RPM/DEB, then edit postgresql.conf:
Restart Postgres. You must raise max_worker_processes or PipelineDB will fail to launch.
Example: Wikipedia page views
- Create a stream (foreign table backed by the PipelineDB handler):
- Create a continuous view to materialize rolling aggregates:
- Ingest data via
COPY:
wiki_stats now updates continuously as new rows arrive.
Core concepts
- Streams – foreign tables representing append-only input.
- Continuous views – materialized aggregates that update incrementally as stream events arrive.
- Transforms – optional preprocessing stages.
PipelineDB lets you express streaming jobs with plain SQL and reuse the Postgres toolchain you already know.
