0

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?

0

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.