imcs
imcs · In-Memory Columnar Store extension for PostgreSQL.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100004 | imcs | imcs | 1.1 | OLAP | Apache-2.0 | C |
Usage
Sources:
imcs adds an in-memory columnar store for analytic time-series workloads. Ordinary tables remain the durable source; selected columns are loaded into shared memory, and generated time-series accessors apply vectorized operations, compression, and optional parallel execution.
Load the module at server start and restart PostgreSQL after changing the setting:
For a table named Quote with timestamp key Day and series identifier Symbol, the guide demonstrates the following workflow:
cs_create() generates load, append, delete, trigger, and accessor objects for the selected table. Data loaded from a table is sorted by timestamp; incremental or trigger-driven inserts must remain timestamp-ascending or an out-of-order error is raised. The store cannot represent SQL NULL directly, and its supported element types are primarily fixed-size values; review dictionary mapping before using variable-length strings.
Shared-memory contents must be reloaded after restart unless the documented autoload mode is used. Size imcs.shmem_size and related limits before loading data, and test the first-access latency of autoload. The pinned control reports version 1.1, while the latest listed PGXN distribution is 0.1.7; treat those as separate version lines and verify the exact source, license, server compatibility, and upgrade path.