Re: strange query behavior

Поиск
Список
Период
Сортировка
От Ragnar
Тема Re: strange query behavior
Дата
Msg-id 1166037311.6369.123.camel@localhost.localdomain
обсуждение исходный текст
Ответ на strange query behavior  ("Tim Jones" <TJones@optio.com>)
Список pgsql-performance
On mið, 2006-12-13 at 13:42 -0500, Tim Jones wrote:

>   I have a query that uses an IN clause and it seems in perform great
> when there is more than two values in it but if there is only one it is
> really slow. Also if I change the query to use an = instead of IN in the
> case of only one value it is still slow. Possibly I need to reindex this
> particular index?

can you provide us with an EXPLAIN ANALYZE for these 2 cases?

what version pg is this?

does this happen only for a particular single value, or for any values?

I assume you have ANALYZEd the table in question.

gnari



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

Предыдущее
От: "Tim Jones"
Дата:
Сообщение: strange query behavior
Следующее
От: Tom Lane
Дата:
Сообщение: Re: strange query behavior