When defining unique indices in PostgreSQL you have two options:
- Define unique index using constraint with the table via a single statement
- Define index later after table is created using separate
CREATE INDEXstatement
However, when it comes to unique partial indices, is it possible to create one with the table using single statement or do I have to use a separate statement?
I would prefer to define all the indices with the table.