Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

System Catalog

Goal: Describe the structure and purpose of AngaraBase system tables for monitoring, diagnostics, and metadata management.

The AngaraBase system catalog is accessible via the sys virtual schema. These tables provide real-time information about the instance state, configuration, and database objects.

sys.tables Table

Contains metadata for all tables across all databases and schemas.

FieldTypeDescription
db_idstringDatabase identifier.
schema_namestringSchema name (usually public).
table_namestringTable name.
tablespace_namestringTablespace name.
storage_enginestringStorage engine type: row_store (HeapFile), memory (In-memory), htap_row_column.
durabilitystringDurability level (for memory tables): none, logged, snapshotted.
max_rowsuint64Row limit (for memory tables).
eviction_policystringEviction policy (for memory tables): error, fifo, lru, lfu.
checkpoint_interval_msuint64Checkpoint interval in ms (for snapshotted).
current_rowsuint64Current number of live rows (approximate).
evictions_totaluint64Counter of evicted rows.
limit_errors_totaluint64Counter of row limit exceeded errors.
append_onlyboolAppend-only mode flag (deprecated, see mutation_policy).
mutation_policystringMutation policy: unrestricted, no_delete, append_only.

Storage Engine Note

  • row_store: Standard disk storage (HeapFile).
  • memory: Data is stored in RAM. Durability is controlled by the durability parameter.

sys.settings Table

Provides access to the current server configuration settings (Effective Configuration).

FieldTypeDescription
namestringParameter name (e.g., server.addr).
valuestringCurrent effective value.
sourcestringValue source: default, config, bootstrap_env, sql_runtime.
dynamicbooltrue if the parameter can be changed without a restart.
docstringBrief description of the parameter.

sys.databases Table

List of available databases.

FieldTypeDescription
db_idstringUnique database identifier.
namestringDatabase name.

sys.schemas Table

List of schemas within databases.

FieldTypeDescription
db_idstringDatabase identifier.
schema_namestringSchema name.

Troubleshooting

  • Symptom: The sys.tables table returns an empty result.

    • Cause: The user does not have permission to view metadata, or no database is selected (if filtering is used).
    • Solution: Check access rights (RBAC).
  • Symptom: A change in sys.settings is not applied.

    • Cause: The parameter has dynamic = false or is overridden by an environment variable (source = bootstrap_env).
    • Solution: A server restart or a change in configuration/environment variables is required.