Indexes again

Поиск
Список
Период
Сортировка
От Silas Justiniano
Тема Indexes again
Дата
Msg-id 58e3b9040602020408t6b4376c6i51ea464c11905edc@mail.gmail.com
обсуждение исходный текст
Ответы Re: Indexes again  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
  Sorry, I'll remake (rewrite? redo? ... bad English :/ ) my question:

  I have Books, Authors and Intermediate table. At intermediate I'm
currently using the following indexes:

  CREATE INDEX authorIndex ON Intermediate(author_id);
  CREATE INDEX bookIndex ON Intermediate(book_id);

  I need a third index to not allow duplicated data in my table:

  CREATE UNIQUE INDEX blablabla ON Intermediate(author_id, book_id);

  I'd like to know if, using the third index I can delete one of the
first. Maybe both?

  Thank you! Bye!


--
Silas Justiniano - Brazil

В списке pgsql-general по дате отправления:

Предыдущее
От: David Goodenough
Дата:
Сообщение: Re: Primary keys for companies and people
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Indexes again