DB
Operations

System tables

The system.* introspection tables — queries, query_log, parts, traces, transforms, subscriptions, memory_profile, and more.

NYXDB exposes its internal state as system.* tables you can query with ordinary SQL. Column lists below are from the engine's system-table definitions.

system.queries

Live, in-flight queries (keyed by query_id). It carries a deep per-stage timing breakdown (~90 columns); the most-used:

ColumnTypeMeaning
query_idUInt64Identity
statementStringSQL text
stateStringrunning / streaming
started_msUInt64Start (epoch ms)
elapsed_usUInt64Wall-clock µs
ttfb_usUInt64Time to first byte
rows_scanned / rows_returnedUInt64Scan vs output
peak_memory_bytesUInt64Peak tracked memory
shards_total / shards_prunedUInt64Shard pruning
granules_total / granules_prunedUInt64Granule pruning
scan_us, op_filter_us, op_aggregate_us, …UInt64Per-stage / per-operator µs

system.query_log

Completed queries with retention (keyed by query_id, retention by ended_ms). Mirrors system.queries plus ok ('0'/'1'), error (verbatim text), and exec_us.

SELECT query_id, exec_us, rows_returned, ok, error
FROM system.query_log
ORDER BY ended_ms DESC
LIMIT 20;

system.parts

ColumnType
part_idString
relationString
shard_idUInt64
rowsUInt64
size_bytesUInt64
min_key / max_keyString
min_ts / max_tsUInt64
diskString
created_at_msUInt64

system.traces

Execution spans with retention (keyed by trace_id, span_id).

ColumnType
trace_id, span_id, parent_idUInt64
typeString (query, later flush/compaction/…)
subject, name, kindString
start_us, dur_us, dark_usUInt64
thread_slotUInt64
shard_idInt64 (-1 if not shard-scoped)
attrsString (key=value;…)

system.transforms

Ephemeral — rebuilt each refresh from the catalog and runtime.

ColumnType
nameString
source / targetString
stateString
startString
reflected_positionString
lagString (nullable)
rows_emittedUInt64
last_errorString

system.subscriptions

Live streaming subscribers and PSI delivery health (keyed by subscription_id): query_id, client, user, psi_lane, psi_pending_events, psi_pending_bytes, psi_overflow_count, psi_delivery_lag_p50_us / _p95_us / _p99_us, and more.

system.memory_profile

Ephemeral top-N allocation sites, refreshed on a memory-pressure tier crossing (keyed by sequence, rank): bytes, allocations, trigger, backtrace. Empty on engines without allocator profiling.

Other system tables

system.metrics (gauges: name, value, description), system.events (counters), system.disks, system.storage_policies, system.column_stats, system.endpoints, system.grants, system.operator_grants, system.users, system.attributes, system.governance_log.

TODO-verify: system.functions and a system.tables catalog view — referenced by name but their column lists are not yet confirmed in the engine.

On this page