citus_columnar
citus · Citus columnar storage engine
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2401 | citus_columnar | citus | 15.0.0 | OLAP | AGPL-3.0-only | 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_mooncake columnar storage_engine orioledb pg_sorted_heap |
| Siblings | citus |
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| el8.aarch64 | N/A | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| el9.x86_64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| el9.aarch64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| el10.x86_64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| el10.aarch64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| d12.x86_64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| d12.aarch64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| d13.x86_64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| d13.aarch64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| u22.x86_64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| u22.aarch64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| u24.x86_64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| u24.aarch64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| u26.x86_64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
| u26.aarch64 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 15.0.0 | PIGSTY 14.4.1 | PIGSTY 13.6.0 |
Source
github.com/citusdata/citus
citus-15.0.0.tar.gz
citus-14.4.1.tar.gz
citus-13.6.0.tar.gz
citus-12.1.18.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources:
citus_columnar ships in the Citus package and provides a columnar table access method for scan-heavy, append-oriented archival or analytical tables. On PG17–19, package 15.0.0 uses SQL 15.0-1.
| PostgreSQL | Package | citus SQL | citus_columnar SQL |
|---|---|---|---|
| 15 | 13.6.0 | 13.6-1 | 13.5-1 |
| 16 | 14.4.1 | 14.4-1 | 14.4-1 |
| 17–19 | 15.0.0 | 15.0-1 | 15.0-1 |
Create a Columnar Table
citus_columnar itself does not require shared_preload_libraries. Preloading citus is still required when the database also uses the distributed citus extension.
Load and Query Data
Columnar storage groups rows into stripes and compresses columns in chunks. Bulk inserts in reasonably sized transactions produce better stripes than a stream of tiny transactions.
Convert with the Citus Extension
When the main citus extension is also preloaded and installed, use its helper to convert a local or distributed table:
Conversion rewrites the table. Converting to columnar drops existing indexes, so inventory dependent indexes and constraints before running it and schedule enough disk and lock time for the rewrite.
alter_table_set_access_method() belongs to citus, not to standalone citus_columnar. Without the main extension, create a new USING columnar table and copy data into it instead of assuming this helper exists.
Tune Compression
Inspect and change table-level columnar options with the documented helpers:
New settings affect newly written stripes. Rewrite existing data when old stripes also need the new layout.
Operational Boundaries
- Columnar tables are intended for append-heavy use.
UPDATEandDELETEare not supported, and space left by rolled-back writes is not reclaimed through ordinary heap-style maintenance. - TOAST is not available; large values remain inline and can hit PostgreSQL’s row-size limits.
- Row locks,
AFTER ... FOR EACH ROWtriggers, serializable isolation, logical decoding, foreign keys, unlogged tables, and several scan types are unsupported. Check the current upstream limitation list before adopting the access method. - Ordinary heap assumptions about indexes, vacuum, replication, triggers, and constraints do not automatically apply. Validate every required database feature against a representative columnar table.
- The extension is installed in
pg_catalog. Read its SQL revision frompg_extensionin the target database.
14.3 Visibility Fix
Release 14.3.0 corrects columnar stripe xmin visibility. Apply matching library and SQL updates throughout the deployment using extension version 14.3-1; this does not remove the access-method restrictions above.
PG16 Maintenance Release 14.4.1
Citus 14.4.1 aligns the independent citus_columnar SQL version to 14.4-1. The 14.3-to-14.4 transition has no catalog definition changes. Install matching files and use ALTER EXTENSION citus_columnar UPDATE TO '14.4-1'; the storage restrictions above remain. Use the exact SQL revision in the upgrade command; the upstream release number is 14.4.1.
15.0.0 and Existing Databases
15.0.0 uses a buffer access strategy for large columnar scans to reduce pressure on shared buffers.
On PG18, the packaged SQL files provide no in-place path from 14.3-1 to 15.0-1 for either extension. Check the installed revision and the available scripts in each existing database. A null path means the scripts cannot perform this transition.