Re: [PATCH] Partial indicies almost working (I think)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Partial indicies almost working (I think)
Дата
Msg-id 25124.994183077@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [PATCH] Partial indicies almost working (I think)  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: [PATCH] Partial indicies almost working (I think)  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> So, as far as I can tell, partial indecies would be completely usable, *if*
> I could get the planner to use them. I'm pretty sure it goes wrong in
> create_index_paths. The pred_test works fine but somewhere in the lines
> below it doesn't realise it can use the index.

Offhand I don't see why the existence of a predicate would matter.  If
you set enable_seqscan to FALSE, does it start using the index?

            regards, tom lane

PS: please don't use // comments in Postgres code.  They're unportable.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pqReadData() -- backend closed on COPY
Следующее
От: "Neil Conway"
Дата:
Сообщение: log analyzer?