NEW RasterizedDB 1.1.0 is out: sharding and the gateway, the message broker, roles and row-level security, compression, .NET on NuGet, and the enterprise edition. What's new ›
FEATURES

Everything in the box.

One binary. Every feature below ships in 1.0, and each one has a design note in the repository with the alternatives that were measured and rejected.

1 / 6

Protocols

One process, every door open at once, one role catalogue behind them all.

PostgreSQL wire

Simple and extended query protocols, bound parameters, SCRAM-SHA-256, TLS, COPY, LISTEN/NOTIFY, EXPLAIN. psql, drivers and ORMs connect unmodified.

MySQL / MariaDB

The MySQL client protocol on --mysql-port or a unix socket, with MySQL's names, quoting and errors.

SQL Server (TDS)

EF Core 10 migrations run unchanged, SqlBulkCopy, IDENTITY_INSERT, SCOPE_IDENTITY, datetime2(7) at 100 ns, SQL Server error numbers, case-insensitive collation by default.

Redis (RESP2 / RESP3)

Any Redis client on --kv-port: strings, counters, hashes, lists, sets, sorted sets, expiry, pipelining, pub/sub.

rastcp, the native protocol

Binary, typed answers over TLS 1.3 or a unix socket; multiplexed callers on one connection. The cheapest path into the engine.

Unix sockets everywhere

Every protocol can listen on a socket file, with peer authentication by the kernel's uid and TCP turned off entirely.

2 / 6

SQL and types

PostgreSQL's dialect, measured against a real PostgreSQL with a differential harness.

40 PostgreSQL types

Intervals, MAC and bit strings, the seven geometric types and the six ranges, each with its real wire OID.

JSON and JSONB

Documents stored as binary values, with path indexing and GIN indexes over whole documents or one field.

Full-text search

to_tsvector with GIN indexes, MATCH and CONTAINS, collations.

Joins, CTEs, LATERAL

Correlated subqueries, derived tables, WITH, LATERAL, set operations, window and ordered-set aggregates (percentile_cont, mode).

Writes that return

INSERT … ON CONFLICT, UPDATE … FROM, DELETE … USING, MERGE, RETURNING with expressions.

Schema objects

Views, sequences, domains, functions and triggers, with a PL/pgSQL interpreter.

Secondary indexes

B-tree, hash and GIN; unique and primary-key constraints; persistent and paged on disk.

Statement cancellation

statement_timeout and client cancel, answered with PostgreSQL's SQLSTATEs.

3 / 6

Engine

Written from scratch in Rust. No B-tree on the scan path, no fork of anything.

Bit-sliced filter index

Per-column fingerprints, 512 rows per SIMD register, plus zone maps for ranges. AVX-512 and AVX2 kernels, a portable path on ARM64; adaptive and tunable per column at runtime.

MVCC transactions

Snapshots per statement, READ COMMITTED and REPEATABLE READ, savepoints, first-updater-wins conflicts.

Write-ahead log

Checkpoints, preallocation and a synchronous_commit knob with its trade stated exactly.

Space reclamation

A background vacuum publishes a free list the write path allocates from; VACUUM and VACUUM FULL.

Hash partitioning

Up to three key columns; ADD COLUMN and CREATE INDEX apply to every partition.

One engine per directory

An OS lock on the data directory, so two processes never write one database.

4 / 6

Storage tiers

In memory, on local disks and in S3, per table, and a table moves between them with one statement.

In-memory tables

A table that lives in the process: STORAGE MOVE TABLE t TO 'memory:'.

Storage pools

One database across several directories, with a placement policy and mirrored backups.

Tables in S3

The key/value storage driver keeps a table in any S3-compatible store behind a byte-budgeted page cache, with crash-safe commits across files.

Redis-compatible KV cache

The application's cache in the same server, with maxmemory, eviction policies and optional persistence.

5 / 6

Operations

The parts you need on the second day.

Replication

Multi-primary, statement-shipping, HLC-ordered, over TLS 1.3.

Backup and PITR

Snapshots and point-in-time recovery to any S3-compatible store.

Branches

Copy a database live or from a past point, then reset, promote, diff and three-way merge it back.

PostgreSQL import

IMPORT DATABASE FROM POSTGRES copies a live database in one statement.

Runtime configuration

SHOW CONFIG and SET CONFIG for every knob; hot keys change on the running server and are saved.

Introspection

pg_stat views, statement statistics, table stats with live rows and slots per live row.

6 / 6

SDKs and tools

A Rust client with an ORM, the engine as a library, and a console.

rasterizeddb_client

Typed queries, transactions with retry, an ORM with derives, migrations, keyset pagination and a KV API, over the native protocol.

rasterizeddb_embedded

The full engine in your process, driven through the same client: start embedded, move to a server later.

rdb_studio

The desktop console: dashboard, data editor, query editor, bench, backups, branches, replication and config.

Packages

Linux and Windows on x86-64 and ARM64, static musl builds, Docker images and an Arch package with a systemd unit.

GET STARTED

Running in one command.

Linux and Windows, x86-64 and ARM64, a static musl build, an Arch package, or Docker.

terminalDOCKER
# PostgreSQL on 5432, native on 61170
docker run -d --name rasterizeddb \
  -e RASTERIZEDDB_PG_PASSWORD=change-me \
  -p 5432:5432 -p 61170:61170 \
  -v rasterizeddb:/var/lib/rasterizeddb \
  milendenev/rasterizeddb:latest

psql "postgresql://superuser@127.0.0.1:5432/postgres"
✓ page rendered in 173 µs axum + tera + htmx · no other javascript