What it flags
Adding a PostgreSQLUNIQUE or PRIMARY KEY constraint to an existing table without attaching an existing index with USING INDEX. The index build blocks reads and writes. This includes an inline ADD COLUMN ... UNIQUE constraint.
For an inline constraint, add the column without UNIQUE first. Review a separate concurrent unique index build outside a transaction, then attach the index where PostgreSQL supports it. The staged change needs manual review.
Configuration
Set the rule to"off" in loadwise.config.json to drop its findings: