System Tables
System tables are read-only relations in the deltastream.sys virtual schema that expose metadata about your DeltaStream organization. They can be queried using standard SQL SELECT statements, which makes them useful for programmatic access, automation, and agents that need to inspect or reason about the state of your DeltaStream resources.
Syntax
SELECT column [, ...]
FROM deltastream.sys."<table_name>"
[ WHERE condition ]
[ ORDER BY column ]
[ LIMIT n ];Description
System tables provide the same information as the corresponding LIST and DESCRIBE commands, but as queryable SQL relations. This allows you to filter, sort, join, and aggregate metadata in ways that the dedicated commands do not support.
Note System table names must be quoted with double quotes, e.g. deltastream.sys."compute_pools".
Access Control
Each system table enforces role-based access control automatically. Rows are filtered to only those resources the current role has USAGE privileges on. No additional WHERE clause is needed to scope results to the current role.
Column Types
Columns in system tables use the following DeltaStream types:
boolean
BOOLEAN
smallint
SMALLINT
integer
INTEGER
bigint
BIGINT
varchar, text, uuid
VARCHAR
timestamptz
TIMESTAMP_LTZ
Available System Tables
Audit log of all actions performed in the organization
Compute pools defined in the organization
Databases in the organization
Protobuf descriptor sources
Function source packages (JARs)
User-defined functions (UDFs)
Per-user session defaults (role, database, store, compute pool)
Subscription plan details for the organization
Organizations the current user is a member of
PostgreSQL-compatible user credentials
Streaming queries (active and historical)
Key/value tags attached to queries
Column definitions for all relations
Streams, changelogs, tables, materialized views, and indexes
Privilege grants for roles
Roles defined in the organization
Schema registry connections
Schemas (namespaces) within databases
Secrets (metadata only, values never exposed)
External system connections
User-to-role membership grants
Per-user key/value metadata (internal UI state)
Last updated

