I have trouble understanding two limitations for postgres when it comes to create indexes and dropping them in concurrently mode:
the first about CREATE INDEX CONCURRENTLY
:
Regular index builds permit other regular index builds on the same table to occur simultaneously, but only one concurrent index build can occur on a table at a time.
actually I tried that, but I could apply two commands with CREATE INDEX CONCURRENTLY
and both indexes were valid. Does that just mean that Postgres allows running the command twice but
the second about DROP INDEX CONCURRENTLY
:
There are several caveats to be aware of when using this option. Only one index name can be specified, and the CASCADE option is not supported. (Thus, an index that supports a UNIQUE or PRIMARY KEY constraint cannot be dropped this way.)
currently I did not read the docs and removed an index with DROP INDEX CONCURRENTLY
that was UNIQUE
. However it did work and the index was removed, did I miss something here?