Architectural Comparison

Kolmos vs PostgreSQL:
Row Bloat & AWS EBS Pricing vs Columnar HTAP on Kolmos Cloud Storage

PostgreSQL is the world's most trusted relational database for transactional logic. But as datasets scale into hundreds of gigabytes, row-oriented heap pages, autovacuum locks, and AWS EBS gp3 volume pricing drive infrastructure costs through the roof. Kolmos gives you the exact same PostgreSQL wire protocol on Port 5432 while slashing storage bills by up to 85–90% using self-compressing columnar segments on Kolmos Cloud Storage.

Detailed Architectural Matrix

How traditional PostgreSQL compares directly to the Kolmos engine.

Feature
Traditional PostgreSQL
Kolmos Engine
Physical Storage Architecture
Row-oriented heap pages (8KB fixed pages, prone to vacuum bloat and dead tuples)
Self-compressing columnar segments (.ksf) stored natively on Kolmos Cloud Storage
Storage Pricing per GB/mo
AWS EBS gp3 ($0.08–$0.12/GB/mo) + Provisioned IOPS charges
$0.015/GB/mo flat on cloud object storage
Data Compression Ratio
1.0× baseline (TOAST compression applies only to large strings exceeding 2KB)
1.7×–2.1× smaller than Parquet-zstd via Formula AST mining and k-medoids prototypes
Cloud Data Egress Fees
$0.09 per GB transferred out over the public internet or across AWS regions
$0.00 (Zero data egress fees guaranteed by Kolmos Cloud Storage)
Analytical Query Performance
Row-by-row CPU execution (Volcano iterator model); CPU bottlenecks on large table scans
SIMD-vectorized columnar execution powered by Apache DataFusion & Apache Arrow
Point Lookup Latency (WHERE id = ?)
0.8ms – 1.5ms via in-memory B-Tree indexes
Single-digit milliseconds on a fresh table via in-memory Primary Key Bloom filter sidecars
Read Amplification on Analytics
High: Must read every column in a row even when querying a single metric
Near Zero: Queries touch only the specific columnar chunk requested
Wire Protocol & Driver Compatibility
Native PostgreSQL Wire Protocol (Port 5432)
100% Native Wire Compatibility on Port 5432 (pgwire listener)
Ecosystem Extensions
Vast extension ecosystem (PostGIS, TimescaleDB, pgvector, citext)
Multi-wire protocol engine (Postgres 5432, MySQL 3306, MongoDB 27017 in one)
Storage & Compute Separation
Coupled: Storage scales alongside provisioned compute instances
Decoupled: Independent compute nodes reading from shared cloud object storage
Write Durability & Transactions
ACID transactions via Write-Ahead Log (WAL) and MVCC multi-versioning
Crash-safe WAL with Blake3 checksums & immutable segment commits
Format Openness & Future Proofing
Open source PostgreSQL binary heap format (inspectable with pg_filedump)
Sandboxed WASM decoder covenants pinned to segment footers

Drop-In Wire Compatibility

Connect your existing tools and frameworks with zero code rewrites.

// Prisma schema.prisma — 1-line connection swap
datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

// .env
// Simply point your standard PostgreSQL URL to Kolmos on Port 5432
DATABASE_URL="postgres://app_user:secret_token@cloud.kolmos.dev:5432/production_db?sslmode=require"
Technical Breakdown

Comprehensive Architectural Review

An in-depth engineering comparison of physical storage formats, query execution pipelines, index acceleration, and real-world total cost of ownership.

1. The Anatomy of PostgreSQL's Row-Store Bottleneck at Scale

PostgreSQL was architected in the late 1980s under the legendary POSTGRES project directed by Michael Stonebraker. Its foundational storage architecture is centered around row-oriented 8KB heap pages. In this design, every table is a collection of pages, and each page contains a page header, an array of item pointers (line pointers), and the physical row tuples stored contiguously from the bottom of the page upward.

For Online Transaction Processing (OLTP)—such as inserting a new user record or retrieving an account balance by primary key—this model is brilliant. A single disk read transfers an entire row containing all user attributes directly into PostgreSQL's shared_buffers cache.

However, modern application workloads have evolved. Today's applications do not merely perform transactional CRUD; they continuously capture audit logs, event telemetry, customer activity, and financial ledger data. When engineering teams run analytical aggregations—such as calculating monthly recurring revenue (MRR), cohort retention, or regional sales totals—the row-oriented heap page model hits three severe physical bottlenecks:

  • Massive Read Amplification: If a table has 40 columns and an aggregation query only requires two columns (e.g. created_at and amount), PostgreSQL must still load all 40 columns off the disk and into memory. This creates a 20× to 30× read amplification penalty.
  • CPU Cache Inefficiency (The Volcano Iterator): PostgreSQL executes queries using the traditional Volcano iterator model, where each plan node invokes ExecProcNode() tuple-by-tuple. This causes frequent CPU instruction cache misses and prevents modern CPUs from leveraging SIMD (Single Instruction, Multiple Data) vectorization.
  • Tuple Bloat and Autovacuum Contention: PostgreSQL uses Multi-Version Concurrency Control (MVCC) without an undo log. Every UPDATE writes a completely new tuple to disk, leaving the old tuple as dead space until the VACUUM daemon scans the table. On heavy write-and-update tables, bloat can easily consume 40% to 60% of total disk space.
Key Architectural Takeaway:PostgreSQL's 8KB row-oriented page structure forces full-row disk reads and tuple-by-tuple CPU execution, causing severe performance degradation and storage bloat on analytical workloads.

2. How Kolmos Delivers Columnar SIMD Speed on the PostgreSQL Wire Protocol

Kolmos solves this architectural tension by decoupling the client communication layer from the underlying storage representation. When your application connects to Kolmos on Port 5432, the connection is handled by a high-throughput, native PostgreSQL wire protocol (pgwire) listener written in Rust.

Your application—whether running Prisma, Drizzle, Hibernate, or raw psql—transmits standard PostgreSQL queries, prepared statements, and transactional handshakes. The Kolmos parser inspects and translates the abstract syntax tree into an optimized logical execution plan executed by an embedded Apache DataFusion engine.

Instead of reading row-by-row from 8KB disk pages, the engine operates on Apache Arrow columnar record batches. When an aggregation like SELECT status, count(*), sum(price) FROM orders GROUP BY status is received:

  • Predicate Pushdown & Column Pruning: The engine inspects segment headers on Kolmos Cloud Storage and downloads only the byte buffers corresponding to the status and price columns. The other 30 columns in the table are completely skipped.
  • Hardware-Accelerated SIMD Execution: DataFusion loads contiguous column arrays into CPU registers, executing AVX-512 and ARM Neon SIMD instructions. A single CPU instruction processes 8 to 16 numeric values simultaneously, processing analytical queries over vectorized column batches instead of row-by-row execution.
  • In-Memory Primary Key Bloom Filters: To preserve the fast point lookups required by web apps, Kolmos generates in-memory Bloom filter sidecars for primary key columns. An operational lookup (WHERE id = 'usr_99') tests the Bloom filter, pinpoints the exact segment, and reads the target tuple in single-digit milliseconds on a fresh table.
Key Architectural Takeaway:Kolmos combines a 100% native PostgreSQL wire listener with Apache DataFusion's vectorized Arrow engine, executing analytical queries on vectorized columns while keeping single-digit-millisecond point lookups on a fresh table (p99 3.1 ms at 100K rows; it rises under heavy update load until compaction).

3. The Cloud Storage Economics: AWS EBS vs Kolmos Cloud Storage

Beyond query latency, the primary driver for engineering teams migrating from traditional managed PostgreSQL (AWS RDS, Aurora, Cloud SQL) to Kolmos is infrastructure total cost of ownership (TCO).

Managed PostgreSQL providers force your data onto high-performance block storage volumes (such as AWS EBS gp3 or io2). On AWS:

  • Base EBS gp3 storage costs $0.08 to $0.115 per GB per month.
  • As transactional throughput grows, you must provision additional IOPS ($0.005/provisioned IOPS-month) and throughput ($0.04/MB/s-month), easily doubling your storage invoice.
  • Data transfer out over the internet or across AWS Availability Zones costs an exorbitant $0.09 per GB.
  • Aurora I/O-optimized instances lock you into steep compute instance commitments to offset I/O charges.

Kolmos fundamentally alters this financial equation. Kolmos stores committed, immutable columnar segments (.ksf files) directly on cloud object storage at a flat rate of $0.015 per GB per month. Furthermore, Kolmos Cloud Storage has a contractual $0.00 data egress fee guarantee.

When you factor in Kolmos's autonomous Explanation Ladder—which stores data 1.7×–2.1× smaller than Parquet-zstd—a 2 TB database that costs $300+/month on AWS RDS storage costs approximately $30.00 per month on Kolmos Cloud (2,000 GB × $0.015), before any compression.

Key Architectural Takeaway:By replacing expensive AWS EBS gp3 block storage with cloud object storage and autonomous compression, Kolmos slashes database storage costs from ~$0.12/GB to under $0.015/GB with zero egress fees.

4. Zero-Downtime Migration: Moving from PostgreSQL to Kolmos

Migrating a production database can be daunting. Because Kolmos implements the native PostgreSQL wire protocol and standard SQL semantics, the migration process requires zero changes to your application code.

Engineering teams typically adopt a three-phase migration path:

  1. Initial Schema and Data Ingestion: Use standard PostgreSQL tooling like pg_dump or native CDC (Change Data Capture) replication to stream your existing tables into Kolmos. Kolmos automatically builds the columnar segments, formula ASTs, and Bloom filter sidecars.
  2. Dual-Read Verification: In your application staging or canary environment, point read-heavy reporting queries or background worker connections to Kolmos. Validate query results and observe the dramatic drop in query execution times and memory consumption.
  3. Production Cutover: Update your application's DATABASE_URL environment variable to point to your Kolmos cluster endpoint on Port 5432. Your connection pools (HikariCP, pgBouncer), ORMs (Prisma, Drizzle, SQLAlchemy), and analytics dashboards connect immediately.
Key Architectural Takeaway:Because Kolmos matches PostgreSQL's wire protocol and data types bit-for-bit, migration is as simple as streaming your data and updating your database connection string.

Frequently Asked Questions

Technical, operational, and financial considerations when evaluating Kolmos vs PostgreSQL.

Is Kolmos a fork of PostgreSQL?

No. Kolmos is an independently architected database engine written in Rust. It implements a native PostgreSQL wire protocol listener on Port 5432 that emulates PostgreSQL's frontend/backend communication, prepared statements, and data types, while utilizing Apache DataFusion and Arrow for columnar vectorized execution.

Will my Prisma or Drizzle ORM queries work without modification?

Yes, 100%. Prisma, Drizzle, Sequelize, TypeORM, SQLAlchemy, and standard PostgreSQL clients (such as node-postgres and asyncpg) connect to Kolmos just like they connect to any standard PostgreSQL instance on Port 5432.

Does Kolmos support transactions (ACID)?

Yes. Kolmos provides transactional integrity through a crash-safe Write-Ahead Log (WAL) with Blake3 checksums. Writes are committed durably before columnar segments are packed and uploaded to cloud object storage.

How can point lookups (SELECT * WHERE id = ?) be fast on object storage?

Kolmos uses a multi-tier caching hierarchy. In-memory Bloom filter sidecars and segment min/max statistics isolate candidate segments. Hot data segments are cached on local NVMe SSDs, allowing single-record primary key lookups to return in single-digit milliseconds on a fresh table.

Can I use PostgreSQL extensions like PostGIS or TimescaleDB with Kolmos?

C-based PostgreSQL extensions that compile directly into the PostgreSQL server core (such as PostGIS or TimescaleDB) are not supported. However, Kolmos natively incorporates comprehensive spatial and time-series analytical functions directly into its core query engine.

How does Kolmos guarantee zero vendor lock-in?

Every Kolmos columnar segment footer contains a sandboxed WASM decoder covenant executed in an isolated Wasmtime runtime. This guarantees that your data files can be decoded and extracted independently decades later without requiring Kolmos proprietary software.

What is the primary difference in cost between AWS Aurora PostgreSQL and Kolmos?

AWS Aurora charges for compute instances, provisioned or I/O-optimized storage ($0.10–$0.20/GB/mo), and data egress fees ($0.09/GB). Kolmos separates compute from storage, storing compressed columnar data on Kolmos Cloud Storage at $0.015/GB/mo with zero egress fees, reducing storage bills by up to 85–90% (storage list prices; compute is billed separately).

Ready to cut your PostgreSQL storage costs by up to 85–90%?

Get started in 60 seconds with your existing connection strings and zero code changes.

Create Free Instance