I hope to remove index in table, but it occurs not remove index.
CREATE INDEX idx_name ON schema_name.table_name(column1, column2);
And, remove index
DROP INDEX idx_name;
but, it fail.
error message is
ERROR: index "idx_name" does not exist
How I do it?
You need to specify schema if it isn't in your search path.
DROP INDEX schema_name.idx_name;
To clarify:
The name of the index to be created. No schema name can be included here; the index is always created in the same schema as its parent table
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.