chunk_columnstore_stats returns the size of s in the , these values are computed when you call
either:
- CREATE TABLE: create a with a default job that automatically moves s in a to the at a specific time interval.
- add_columnstore_policy: create a job on an existing that automatically moves s in a to the at a specific time interval.
- convert_to_columnstore: manually add a specific in a to the .
Samples
To retrieve statistics about s:-
Show the status of the first two s in the
conditions:Returns: -
Use
pg_size_prettyto return a more human friendly format:Returns:
Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
hypertable | REGCLASS | - | ✖ | The name of a |
Returns
| Column | Type | Description |
|---|---|---|
chunk_schema | TEXT | Schema name of the . |
chunk_name | TEXT | Name of the . |
compression_status | TEXT | Current compression status of the . |
before_compression_table_bytes | BIGINT | Size of the heap before compression. Returns NULL if compression_status == Uncompressed. |
before_compression_index_bytes | BIGINT | Size of all the indexes before compression. Returns NULL if compression_status == Uncompressed. |
before_compression_toast_bytes | BIGINT | Size the TOAST table before compression. Returns NULL if compression_status == Uncompressed. |
before_compression_total_bytes | BIGINT | Size of the entire chunk table (before_compression_table_bytes + before_compression_index_bytes + before_compression_toast_bytes) before compression. Returns NULL if compression_status == Uncompressed. |
after_compression_table_bytes | BIGINT | Size of the heap after compression. Returns NULL if compression_status == Uncompressed. |
after_compression_index_bytes | BIGINT | Size of all the indexes after compression. Returns NULL if compression_status == Uncompressed. |
after_compression_toast_bytes | BIGINT | Size the TOAST table after compression. Returns NULL if compression_status == Uncompressed. |
after_compression_total_bytes | BIGINT | Size of the entire table (after_compression_table_bytes + after_compression_index_bytes + after_compression_toast_bytes) after compression. Returns NULL if compression_status == Uncompressed. |
node_name | TEXT | DEPRECATED: nodes the is located on, applicable only to distributed s. |