mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-18 11:43:43 +08:00
This adds a set of aliases for existing compression functions and view to better reflect the column store capabilities of compressed hypertables. The procedures `convert_to_rowstore` and `convert_to_columnstore` are added as aliases to `decompress_chunk` and `compress_chunk` respectively. We change these from functions to procedures to be able to split the conversion into multiple transactions and avoid heavy locking for longer periods. The procedures `add_columnstore_policy` and `remove_columnstore_policy` are added as alias for `add_compression_policy` and `remove_compression_policy` respectively. The functions `hypertable_columnstore_stats` and `chunk_columnstore_stats` are added as aliases for `hypertable_compression_stats` and `chunk_compression_stats` respectively. The views `hypertable_columnstore_settings`, `chunk_columnstore_settings`, and `columnstore_settings` are added as aliases for the corresponding views. We also add aliases for parameters to functions and procedures that take these. - The parameter `timescaledb.enable_columnstore` is an alias for `timescaledb.compress` - The parameter `timescaledb.segmentby` is an alias for `timescaledb.compress_segmentby`. - The parameter `timescaledb.orderby` is an alias for `timescaledb.compress_orderby`.