This topic describes the system tables related to Hologres Dynamic Tables.
Table name | Description |
Stores the metadata of Dynamic Tables. | |
Stores the data lineage of Dynamic Tables. | |
Stores information about running Dynamic Table refresh tasks. Note This system table is not supported for Hologres instances of V3.1 and later. | |
Stores the history of Dynamic Table refresh tasks. |
The hologres.hg_dynamic_table_properties system table
The hologres.hg_dynamic_table_properties system table stores the metadata of Dynamic Tables. The following table describes its fields.
Field | Description |
dynamic_table_namespace | The schema where the Dynamic Table resides. |
dynamic_table_name | The name of the Dynamic Table. |
property_key and property_value | The properties and property values of the Dynamic Table. The properties are described as follows:
|
The hologres.hg_dynamic_table_dependencies system table
The hologres.hg_dynamic_table_dependencies system table stores the data lineage of Dynamic Tables. The following table describes its fields. Note the following points:
A Dynamic Table can correspond to multiple base tables. Therefore, multiple records may exist.
A state table is also considered a base table of a Dynamic Table. By default, it is placed in the
hologres_streaming_mvsystem schema. You can ignore it in practice.You can use system tables such as pg_class to further differentiate the base tables of a Dynamic Table.
Field | Description |
table_namespace | The schema where the base table resides. |
table_name | The name of the base table. |
dynamic_table_namespace | The schema where the Dynamic Table resides. |
dynamic_table_name | The name of the Dynamic Table. |
dependency | The type of the base table. Valid values:
|
The hologres.hg_dynamic_table_refresh_activity system table
This system table is not supported in Hologres instances of V3.1 and later.
The hologres.hg_dynamic_table_refresh_activity system table records currently running Dynamic Table refresh tasks. The following table describes its fields:
Field | Description |
pid | The process ID of the Dynamic Table refresh task. You can use the PID to cancel a running refresh task. For more information, see Cancel a refresh task. |
datname | The database where the Dynamic Table resides. |
query_id | The query ID of the Dynamic Table refresh task. |
usename | The user who performs the Dynamic Table refresh. |
query | The refresh query. |
refresh_mode | The refresh mode of the Dynamic Table. Valid values:
|
refresh_start | The start time of the refresh task. |
duration | The running time of the refresh task. |
serverless_queue_time_ms | The queuing time for the refresh task to use serverless resources. Note This field is displayed only for refreshes that are performed using Serverless Computing resources. |
serverless_resource_used_time_ms | The time that the refresh task uses serverless resources. Note This field is displayed only for refreshes that are performed using Serverless Computing resources. |
serverless_allocated_cores | The specifications of the serverless resources used by the refresh task. Note This field is displayed only for refreshes that are performed using Serverless Computing resources. |
serverless_allocated_workers | The number of serverless workers used by the refresh task. Note This field is displayed only for refreshes that are performed using Serverless Computing resources. |
table_write | The Dynamic Table on which the refresh task is performed. Note This field is displayed only for refreshes that are performed using Serverless Computing resources. |
The hologres.hg_dynamic_table_refresh_history system table
The hologres.hg_dynamic_table_refresh_history system table stores the historical data of Dynamic Table refresh tasks. By default, the data is retained for one month. The following table describes its fields.
Field | Description |
datname | The name of the database where the Dynamic Table resides. |
schema_name | The schema where the Dynamic Table resides. |
dynamic_table_name | The name of the Dynamic Table. |
query_id | The query ID of the refresh. You can use the query ID to go to Query Insight to view more detailed query information. |
refresh_start | The start time of the refresh. |
refresh_end | The end time of the refresh. |
duration | The duration of the refresh. |
refresh_latency | The data latency when the refresh was completed. |
refresh_mode | The refresh mode of the Dynamic Table. Valid values:
|
status | The status of the refresh. Valid values:
|
queue_time_ms | The queuing time to request serverless resources. Note This field is displayed only for refreshes that are performed using Serverless Computing resources. |
serverless_allocated_cores | The amount of serverless resources used, in CUs. Note This field is displayed only for refreshes that are performed using Serverless Computing resources. |
serverless_allocated_workers | The number of serverless workers used. Note This field is displayed only for refreshes that are performed using Serverless Computing resources. |
serverless_resource_used_time_ms | The actual time that serverless resources were used to execute the query, in milliseconds. This does not include the queuing time for resources. Note This field is displayed only for refreshes that are performed using Serverless Computing resources. |
References
For more information about how to use these system tables, see the following topics: