timescaledb/.unreleased/bugfix_5892
Mats Kindahl ee2ddf889e Check unique indexes when enabling compression
When enabling compression on a table, there is a check of unique
and primary key *constraints*, but no check if there is just a unique
index. This means that it is possible to create a compressed table
without getting a warning that you should include the columns in the
index into the segmentby field, which can lead to suboptimal query
times.

This commit adds a check for the unique index as well and ensure that a
similar warning is printed as for a unique constraint.

Fixes #5892
2023-07-27 09:08:05 +02:00

3 lines
78 B
Plaintext

Implements: #5894 Check unique indexes when enabling compression
Fixes: #5892