Re: [NOVICE] Boolean column in multicolumn index

Поиск
Список
Период
Сортировка
От Gerald Cheves
Тема Re: [NOVICE] Boolean column in multicolumn index
Дата
Msg-id f955c2f2-609a-b6a4-8300-0ca0a3eada81@verizon.net
обсуждение исходный текст
Ответ на Re: [NOVICE] Boolean column in multicolumn index  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
On 12/10/2016 7:04 PM, Tom Lane wrote:
CREATE INDEX "right" ON public.t USING btree (ci, cb, co);
CREATE INDEX wrong ON public.t USING btree (ci, co);
CREATE INDEX right_hack ON public.t USING btree (ci, (cb::integer), co);
The problem is that I can't force PostgreSQL to use the "right" index.

Why is only right in parenthesis but the other indices are not?

-- 
siamo arrivati sani e salvi

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

Предыдущее
От: Dima Pavlov
Дата:
Сообщение: Re: [NOVICE] Boolean column in multicolumn index
Следующее
От: Gerald Cheves
Дата:
Сообщение: Re: [NOVICE] Boolean column in multicolumn index