Re: Invisible Indexes

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Invisible Indexes
Дата
Msg-id CAMkU=1xdpFU_zQERoFK=mAs9Oit1RJ1+DuQ4QnEk994qdLr1Wg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Invisible Indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Jun 18, 2018 at 5:57 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

I'm not sure about the "enforce constraint only" argument --- that
sounds like a made-up use-case to me.  It's pretty hard to imagine
a case where a unique index applies to a query and yet you don't want
to use it.


I've not seen it with unique constraints, but have with EXCLUDE constraints.  GiST index costing is not very robust, and the planner can easily decide that a read query should use the EXCLUDE-supporting GiST index in cases where it is not optimal.

Cheers,

Jeff

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH] Use access() to check file existence inGetNewRelFileNode().
Следующее
От: Bruce Momjian
Дата:
Сообщение: pglife and devel branch content