Before you set up compression for the first time, read the compression blog post and
documentation.
ROW LEVEL SECURITYis not supported on compressed s.- Creation of unique constraints on compressed s is not supported. You can add them by disabling compression on the and re-enabling after constraint creation.
Restrictions
In general, compressing a imposes some limitations on the types of data modifications that you can perform on data inside a compressed . This table shows changes to the compression feature, added in different versions of :| version | Supported data modifications on compressed s |
|---|---|
| 1.5 - 2.0 | Data and schema modifications are not supported. |
| 2.1 - 2.2 | Schema may be modified on compressed s. Data modification not supported. |
| 2.3 | Schema modifications and basic insert of new data is allowed. Deleting, updating and some advanced insert statements are not supported. |
| 2.11 | Deleting, updating and advanced insert statements are supported. |
ON CONFLICT and RETURNING.
Available functions
Configuration
ALTER TABLE (Compression): change compression settings on a compressed
Policies
add_compression_policy(): add policy to schedule automatic compression of sremove_compression_policy(): remove a compression policy from a
Manual compression
compress_chunk(): manually compress a givendecompress_chunk(): decompress a compressedrecompress_chunk(): recompress a that had new data inserted after compression
Statistics
chunk_compression_stats(): get compression-related statistics for shypertable_compression_stats(): get statistics related to compression