pipelinedb
pipelinedb · Run continuous SQL queries for high-throughput incremental time-series aggregation in PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100012 | pipelinedb | pipelinedb | 1.1.0 | OLAP | Apache-2.0 | C |
PostgreSQL · 10, 11
Usage
Sources:
pipelinedb 1.1.0 runs continuous SQL queries that incrementally aggregate events arriving on streams. A continuous view stores aggregate state rather than raw input rows, which is useful for high-throughput time-series summaries but changes durability, replay, and query semantics compared with ordinary tables.
Enable the Runtime
The module must be loaded through shared_preload_libraries and PostgreSQL must be restarted. This archived version enables anonymous update checks by default; disable them before startup because the code sends aggregate installation/runtime data over cleartext HTTP to the obsolete anonymous.pipelinedb.com service.
The final repository code supports PostgreSQL 10.1 through 10.5 and PostgreSQL 11.0 on 64-bit systems and requires ZeroMQ. Do not load this binary on an untested major.
Stream and Continuous View
The foreign table is a stream endpoint, not persistent row storage. Inserts emit events to continuous queries that read the stream; the raw rows are discarded unless the continuous query explicitly materializes the needed information elsewhere.
Main Objects and Controls
- A view created with
action = materializeis a continuous view with an internal materialization table. - A view created with
action = transformcan filter or transform a stream and send output through functions such aspipelinedb.insert_into_stream(...). pipelinedb.get_views()andpipelinedb.get_streams()inspect registered continuous objects.pipelinedb.activate(text),pipelinedb.deactivate(text), andpipelinedb.truncate_continuous_view(text)control a continuous query.pipelinedb.stream_insert_levelchooses asynchronous or synchronous acknowledgement behavior; test its exact loss and latency tradeoff before ingestion.
Do not write internal materialization tables directly; pipelinedb.matrels_writable is off by default for this reason. Worker, combiner, queue, batch, commit-interval, and memory GUCs are cluster-level capacity controls and must be sized together.
Lifecycle and Durability
PipelineDB joined Confluent and upstream announced no new releases beyond the old line; the repository is deprecated. Stream acceptance, worker processing, and materialized aggregate commit are distinct durability points. Keep a replayable source of truth outside the stream, test crash/restart and backup/restore behavior, monitor pipelinedb.query_stats and pipelinedb.stream_stats, and plan migration before adopting it for any retained system.