获取关于超表的元数据信息。

有关使用超表的更多信息,包括数据块大小分区,请参阅超表部分

名称类型描述
hypertable_schema文本超表的模式名称
hypertable_name文本超表的表名称
owner文本超表的所有者
num_dimensions小整型维度数量
num_chunks大整型数据块数量
compression_enabled布尔型超表上是否启用了压缩?
is_distributed布尔型超表是否是分布式的?
replication_factor小整型分布式超表的复制因子
data_nodes文本超表分布在其上的节点
tablespaces文本附加到超表的表空间

获取关于超表的信息。

CREATE TABLE metrics(time timestamptz, device int, temp float);
SELECT create_hypertable('metrics','time');
SELECT * from timescaledb_information.hypertables WHERE hypertable_name = 'metrics';
-[ RECORD 1 ]-------+--------
hypertable_schema | public
hypertable_name | metrics
owner | sven
num_dimensions | 1
num_chunks | 0
compression_enabled | f
tablespaces | NULL

关键词

在此页面上发现问题?报告问题 或 在 GitHub 上编辑此页面