Primary key gist index?

Поиск
Список
Период
Сортировка
От Jeremy Finzel
Тема Primary key gist index?
Дата
Msg-id CAMa1XUiQDM2n5EHPir_ECoTjdA=kEDu1u_p=zMUxzdkkJpgmhw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Primary key gist index?
Re: Primary key gist index?
Список pgsql-general
Hello!  From all that I can tell, it is not possible using a btree_gist index as a primary key.  If so, why not?  I have a table with this gist index which truly ought to be its primary key.  as_of_date is of range date type:

EXCLUDE USING gist (id WITH =, as_of_date WITH &&)

Any direction here would be much appreciated.

Right now, I am forced to create a redundant btree index UNIQUE, btree (id, lower(as_of_date)) in order to have a primary key on the table.

Thanks!
Jeremy

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: JDBC connectivity issue
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Primary key gist index?