0

I am using PostgreSQL database. I am creating 10 tables for different companies.In order to access records faster, I am attempting to create indexes on each table. However, PostgreSQL throws an exception for indexes that are created for all companies after the first. Is it not possible to create the same index on different tables within the same database?

1 Answer 1

4

In Postgres index names must be unique within the same schema. If you omit the name then Postgres will create a unique name for you.

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

2 Comments

Thnx a l aot.. got it. Exactly what you mentioned .
IMHO, user5891223, shouldn't it be up voted if you accepted this answer?

Your Answer

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