Skip to content

SQL Interface

SQL Interface

Status: Production-Ready Last Updated: January 4, 2026


Overview

HeliosDB provides a powerful SQL interface that extends standard SQL with custom commands for GPU acceleration, multi-region deployments, autoscaling, and Change Data Capture (CDC). All commands are accessible through standard PostgreSQL protocol clients (psql, JDBC, etc.).

Key Capabilities

CapabilityDescriptionProtocol
Standard SQLFull SQL query supportPostgreSQL wire protocol
GPU OperationsEnable/disable GPU accelerationSET/SHOW commands
Multi-RegionConfigure regions, consistencySET/SHOW commands
AutoscalingControl compute scalingSET/SHOW commands
CDCStream changes to external systemsCREATE/ALTER/DROP

SQL Extensions

GPU Operations

CommandDescription
SET gpu_enabled = true/falseEnable/disable GPU acceleration
SET gpu_memory_limit = '4GB'Set GPU memory limit
SHOW gpu_statusDisplay GPU configuration
SHOW gpu_devicesList available GPU devices

Multi-Region Management

CommandDescription
SHOW REGIONSDisplay all regions
SHOW REGION STATUSCurrent region configuration
SET preferred_region = 'region'Set preferred region
SET consistency_level = 'level'Set consistency (eventual/strong/quorum)

Autoscaling Management

CommandDescription
SHOW AUTOSCALE STATUSCurrent autoscaling metrics
SET autoscale_enabled = true/falseEnable/disable autoscaling
SET autoscale_target_cu = NSet target compute units
SET autoscale_min_instances = NSet minimum instances
SET autoscale_max_instances = NSet maximum instances
SHOW COMPUTE NODESList all compute nodes

Change Data Capture

CommandDescription
CREATE CHANGE DATA CAPTURE ON tableCreate CDC stream
SHOW CDC STREAMSList active streams
SHOW CDC STREAM STATUS nameStream details
ALTER CDC STREAM name PAUSE/RESUMEControl stream
DROP CHANGE DATA CAPTURE nameRemove stream

Client Compatibility

HeliosDB’s SQL interface is compatible with standard PostgreSQL clients:

ClientStatusNotes
psqlSupportedFull compatibility
JDBCSupportedPostgreSQL JDBC driver
Python (psycopg2)SupportedStandard connection
Go (pgx)SupportedNative driver
Node.js (pg)SupportedPostgreSQL client
.NET (Npgsql)SupportedADO.NET provider

Quick Examples

Enable GPU Acceleration

SET gpu_enabled = true;
SET gpu_memory_limit = '8GB';
-- Queries will now use GPU when beneficial
SELECT region, SUM(sales), AVG(price)
FROM sales_data
GROUP BY region;

Configure Multi-Region

SET preferred_region = 'us-west-2';
SET consistency_level = 'quorum';
-- Queries routed to preferred region
SELECT * FROM products;

Create CDC Stream

CREATE CHANGE DATA CAPTURE ON users
TO KAFKA 'localhost:9092' TOPIC 'users-changes'
FORMAT JSON;
SHOW CDC STREAMS;

See Also


See Also: HeliosDB Feature Index