Skip to content

SQL Guide

VaireDB speaks the PostgreSQL wire protocol, so you interact with it using standard SQL through any PostgreSQL client. SQL submitted to the coordinator is parsed by DataFusion, translated to DuckDB's dialect, and dispatched to the core nodes that own the relevant shards.

Dialect

Table DDL accepts a WITH (...) clause for sharding options (shards, replication_factor, shard_by). Statement-level SQL is PostgreSQL-compatible and translated to DuckDB internally.