CREATE INDEX
features:
IF NOT EXISTS
to prevent errors on re-runningUNIQUE
when the index enforces uniquenessCONCURRENTLY
when specified (cannot run in a transaction)USING method
when not btree (the default)((data->>'key'))
DROP INDEX IF EXISTS [schema.]index_name;
CREATE INDEX CONCURRENTLY
cannot run in a transaction and will be executed separately