compress_chunk is manually executed, or when a
compression policy processes the . An insert into a compressed does not update the compressed sizes. For
more information about how to compute sizes, see the chunks_detailed_size section.
Samples
pg_size_pretty get the output in a more human friendly format.
Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
hypertable | REGCLASS | - | ✔ | Name of the |
Returns
| Column | Type | Description |
|---|---|---|
chunk_schema | TEXT | Schema name of the |
chunk_name | TEXT | Name of the |
compression_status | TEXT | the current compression status of the |
before_compression_table_bytes | BIGINT | Size of the heap before compression (NULL if currently uncompressed) |
before_compression_index_bytes | BIGINT | Size of all the indexes before compression (NULL if currently uncompressed) |
before_compression_toast_bytes | BIGINT | Size the TOAST table before compression (NULL if currently uncompressed) |
before_compression_total_bytes | BIGINT | Size of the entire table (table+indexes+toast) before compression (NULL if currently uncompressed) |
after_compression_table_bytes | BIGINT | Size of the heap after compression (NULL if currently uncompressed) |
after_compression_index_bytes | BIGINT | Size of all the indexes after compression (NULL if currently uncompressed) |
after_compression_toast_bytes | BIGINT | Size the TOAST table after compression (NULL if currently uncompressed) |
after_compression_total_bytes | BIGINT | Size of the entire table (table+indexes+toast) after compression (NULL if currently uncompressed) |
node_name | TEXT | nodes on which the is located, applicable only to distributed s |