Re: [NOVICE] Boolean column in multicolumn index

Поиск
Список
Период
Сортировка
От Gerald Cheves
Тема Re: [NOVICE] Boolean column in multicolumn index
Дата
Msg-id c82b71a2-571d-f2ae-2f80-fb398f29ce04@verizon.net
обсуждение исходный текст
Ответ на Re: [NOVICE] Boolean column in multicolumn index  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [NOVICE] Boolean column in multicolumn index  (Thomas Kellerer <spam_eater@gmx.net>)
Список 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.

I meant why is right in quotes but the other indices are not in quotes?

-- 
siamo arrivati sani e salvi

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

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