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.Returns
The
time_interval and integer_interval columns are not applicable for space
based dimensions.