segment_by value will be automatically set to the group by columns of
the continuous aggregate and the time_bucket column will be used as the order_by column in the compression
configuration.
Enable compression on continuous aggregates
You can enable and disable compression on continuous aggregates by setting thecompress parameter when you alter the
view.
-
Enable compression
For an existing continuous aggregate, at the
psqlprompt, enable compression: -
Disable compression
Compression policies on continuous aggregates
Before setting up a compression policy on a continuous aggregate, you should set up a refresh policy. The compression policy interval should be set so that actively refreshed regions are not compressed. This is to prevent refresh policies from failing. For example, consider a refresh policy like this:compress_after parameter greater than the
start_offset parameter of the continuous aggregate policy: