Reported-by: Josh Kupershmidt
Discussion: https://postgr.es/m/CAK3UJRF=KY_nx_TRQq+t6jOrtS2rry79ktkzPiMDhFx_K=dZAg@mail.gmail.com
Author: Josh Kupershmidt
Backpatch-through: master
Adding a constraint using an existing index can be helpful in
situations where a new constraint needs to be added without blocking
table updates for a long time. To do that, create the index using
- CREATE INDEX CONCURRENTLY, and then install it as an
- official constraint using this syntax. See the example below.
+ CREATE UNIQUE INDEX CONCURRENTLY, and then convert it to a
+ constraint using this syntax. See the example below.