显示有关每个已启用压缩的数据块的压缩设置的信息。

名称类型描述
hypertableREGCLASS已启用压缩的超级表
chunkREGCLASS已启用压缩的数据块
segmentbyTEXT用于分段压缩数据的列列表
orderbyTEXT用于对压缩数据进行排序的列列表,以及排序和 NULL 排序信息

显示所有数据块的压缩设置

SELECT * FROM timescaledb_information.chunk_compression_settings'
hypertable | measurements
chunk | _timescaledb_internal._hyper_1_1_chunk
segmentby |
orderby | "time" DESC

查找特定超级表的所有数据块压缩设置

SELECT * FROM timescaledb_information.chunk_compression_settings WHERE hypertable::TEXT LIKE 'metrics';
hypertable | metrics
chunk | _timescaledb_internal._hyper_2_3_chunk
segmentby | metric_id
orderby | "time"

关键词

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