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 ›
DOCS / RASTERIZEDDB SERVER

RasterizedDB Server

Install, run, configure and use the database server: SQL, storage, replication, backups and operations.

IntroductionWhat RasterizedDB is, the seven products and which to choose, the protocols and ports it speaks, and where to go nextInstallRelease archives per platform and CPU, Docker in brief, the Arch package, building from source, and every Cargo feature with its defaultRunning the serverFirst start and the bootstrap role, the data directory and its lock, systemd and Windows, clean shutdown, exit codes and loggingConfigurationEvery command-line flag by area, environment variables, rasterizeddb.conf and its precedence, every SET CONFIG key, and the session settingsConnectingEvery protocol and port, TLS modes, unix sockets, connection strings for psql/JDBC/Npgsql/sqlx/tokio-postgres/node-pg/psycopg, MySQL/SQL Server/Redis clients, and selecting a databaseSecurityA production checklist, per-database roles, role statements, authentication methods per listener, GRANT/REVOKE, superuser-only statements, row-level security and TLSDatabasesCreating, listing, selecting, copying and dropping databases, their SQLSTATEs, and what belongs to one database versus the whole serverTables and data typesCREATE/ALTER/DROP TABLE, CREATE TABLE AS, temp tables and TRUNCATE; every column type with its range (numbers, text, bytea, dates and times, uuid, network, bit, geometric, arrays, ranges, enums, domains); every constraint and foreign-key action; serial, identity and generated columnsQuerying dataSELECT end to end: filtering, sorting and paging (LIMIT/FETCH, keyset), DISTINCT ON, every join kind and LATERAL, subqueries, CTEs incl. recursive, GROUP BY/ROLLUP/CUBE, set operations, window functions and frames, row values, CASE, casts, TABLESAMPLE, PREPARE/EXECUTE, and the refused formsFunctions and operatorsEvery built-in scalar, string, math, date/time, array, range, UUID, JSON, sequence, aggregate, window, set-returning and session function, plus every operator, with argument forms, return types and limitsModifying dataINSERT (multi-row, DEFAULT, INSERT…SELECT, identity OVERRIDING), RETURNING, ON CONFLICT upserts and their targets, UPDATE (incl. multi-column SET and FROM), DELETE (incl. USING), MERGE, data-modifying CTEs, COPY with its full options table, and limitsTransactionsBEGIN/COMMIT/savepoints, the two isolation behaviours, 40001 handling with a retry loop, row and table locks, timeouts, synchronous_commit, and which DDL rolls backIndexesCREATE/DROP INDEX (btree, hash, GIN, unique, JSON path, full-text), what is accepted but not built, reading index use from rows_scanned, tuning the filter index, and index storage (snapshot, residency)JSON and JSONBDeclaring json/jsonb columns, how the two types differ, every operator, the functions (build, inspect, modify, aggregate, expand into rows), path and GIN indexes, and the --json-shadow-tables storage choiceFull-text search and collationsto_tsvector/to_tsquery and @@, query syntax, the english and simple configurations, ts_rank, GIN full-text indexes, MySQL/SQL Server MATCH/CONTAINS pointer, and case- and accent-insensitive collations (rdb_ci, rdb_ci_ai, citext) and what follows themSchemas, views and other objectsSchemas (one namespace), views and materialized views, sequences, SQL functions, procedures, DO blocks, triggers and the PL/pgSQL they run, enum types, domains, row-level security, comments, and the information_schema/pg_catalog relations that list themPostgreSQL compatibilityWhat a PostgreSQL app, driver or tool gets (protocol features, reported parameters, tested clients), moving an app over, prepared statements after schema changes, LISTEN/NOTIFY, EXPLAIN, session settings, what is accepted without effect, what is not supported, and the known differencesPartitioningCreate hash-partitioned tables, see which queries touch one partition, convert, reshape (split/merge/isolate/split key), move and rebalance partitions, and tune open/idle settingsStorage poolsSpread one database over several directories or disks with flags or STORAGE statements: placement policies, mirrored backup locations, moving, draining and rebalancing tablesKey/value storageDefine S3 or directory stores, place or convert tables and partitioned tables onto them, tune and rotate them, and know their backup coverage, costs and limitsKey/value cache (Redis protocol)Turn on the Redis-compatible store: flags, auth and TLS, KV statements from SQL with result columns, eviction, persistence, replication, the full command tableCompressionPer-column and per-row zstd: levels, COMPRESSION and row_compression syntax, RECOMPRESS and VACUUM (FULL, RECOMPRESS), automatic dictionaries, catalogue views and SHOW TABLE STATS metrics, the ORM deriveMessage brokerTopics, queues, subscriptions and exchanges: every server flag (broker, Kafka, AMQP, MQTT), the full BROKER SQL statement set with options and defaults, grants, client examples, replicationReplicationSet up multi-primary nodes with pinned or CA certificates, every flag and REPLICATION SET key, monitoring lag and REPLICATION CHECK, conflicts, reseeding a node, failure handling, and what does and doesn't replicateBackup and restoreTurn on S3 backups (AWS, MinIO, RustFS, others), every backup and restore flag, the BACKUP/RESTORE/SHOW statements, retention, point-in-time recovery, the three restore paths, the prefix guard when wiping a database, offline start and the staging ceilingBranchingCreate branches (now or AS OF a past point), SHOW BRANCHES, diff, three-way merge with its conflict options, reset/promote/drop, branches of branches, disk use and limitsMaintenance: VACUUM, compaction and disk spaceWhat reclaims space automatically, VACUUM / VACUUM FULL, tuning auto-compaction (incl. partitions), reading table space stats, checkpoints and WAL flagsMonitoringHealth checks, every SHOW statement, SHOW QUERIES and pg_stat_statements, EXPLAIN [ANALYZE], the catalogue and stats views, logs, and what to watchImport from PostgreSQLMigrating a live PostgreSQL database with IMPORT DATABASE or the --pg-import-* flags: dry run, every option, type mapping, what does and doesn't come across, the JSON and wide-NUMERIC traps, pg_dump the other wayMySQL and SQL Server clientsTurning on the MySQL and TDS listeners, every flag, connecting with mysql/sqlcmd/SqlClient, what each dialect translates, what front-end-only features exist, what is refusedDockerImage names and tags, running and passing flags, your own certificate, Compose, stopping, the RustFS all-in-one image, and building an image yourselfStudioInstalling and starting rdb-studio, connection profiles, TLS and saved passwords, and every screen with what it does against PostgreSQLUpgradingRelease channels, the upgrade procedure (Docker and replicating clusters included), downgrade refusals, and the release notes that need actionTroubleshootingStart-up refusals, connection and TLS failures, and statement errors by SQLSTATE, each with what it means and what to do

Other parts: EnterpriseEmbedded engineRust clientC# / .NET clientSharding gatewaySetup scriptsDocker recipes

✓ page rendered in 126 µs axum + tera + htmx · no other javascript