Skip to main content
Since 2.18.0
ALTER TABLE (hypercore) replaces ALTER TABLE (Compression), deprecated in 2.18.0.
Enable the or change the settings for a . The settings are applied on a per- basis. You do not need to convert the entire back to the before changing the settings. The new settings apply only to the s that have not yet been converted to , the existing s in the do not change. This means that s with different settings can co-exist in the same . calculates default settings for each when it is created. These settings apply to each , and not the entire . To explicitly disable the defaults, set a setting to an empty string. To remove the current configuration and re-enable the defaults, call ALTER TABLE <your_table_name> RESET (<columnstore_setting>);. After you have enabled the , either:

Samples

To enable the using ALTER TABLE:
  • Configure a that ingests device data to use the : In this example, the metrics is often queried about a specific device or set of devices. Segment the by device_id to improve query performance.
  • Specify the interval without changing other settings:
    • Set the time interval when s are added to the :
    • To disable the option you set previously, set the interval to 0:

Arguments

The syntax is:

Returns

For standard ALTER TABLE return behavior, see the PostgreSQL ALTER TABLE documentation.