Skip to main content
Since 0.1.0 Returns information about the dimensions of a . s can be partitioned on a range of different dimensions. By default, all s are partitioned on time, but it is also possible to partition on other dimensions in addition to time. For s that are partitioned solely on time, timescaledb_information.dimensions returns a single row of metadata. For s that are partitioned on more than one dimension, the call returns a row for each dimension. For time-based dimensions, the metadata returned indicates the integer datatype, such as BIGINT, INTEGER, or SMALLINT, and the time-related datatype, such as TIMESTAMPTZ, TIMESTAMP, or DATE. For space-based dimension, the metadata returned specifies the number of num_partitions. If the uses time data types, the time_interval column is defined. Alternatively, if the uses integer data types, the integer_interval and integer_now_func columns are defined.

Samples

Get information about the dimensions of s.
The by_range and by_hash dimension builders are an addition to 2.13.
Get information about dimensions of a that has two time-based dimensions.

Returns

The time_interval and integer_interval columns are not applicable for space based dimensions.