Re: Incorrect index used in few cases..

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Incorrect index used in few cases..
Дата
Msg-id 802.1560864908@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Incorrect index used in few cases..  (AminPG Jaffer <aminjaffer.pg@gmail.com>)
Ответы Re: Incorrect index used in few cases..  (AminPG Jaffer <aminjaffer.pg@gmail.com>)
Список pgsql-performance
AminPG Jaffer <aminjaffer.pg@gmail.com> writes:
> Is there an explanation why it is using incorrect index?

> SQL:
> SELECT count(*) FROM tc WHERE ((tc.a_id = $1)) AND ((tc.m_id = $2)) AND
> ((tc.ag_id is not null)) AND ((tc.id in ($3))) AND ((tc.pt in ($4, $5, $6)))

What data types are these columns?  For that matter, could we see the
whole schema for the table (psql \d+ output or equivalent)?

            regards, tom lane



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

Предыдущее
От: AminPG Jaffer
Дата:
Сообщение: Incorrect index used in few cases..
Следующее
От: AminPG Jaffer
Дата:
Сообщение: Re: Incorrect index used in few cases..