Re: BUG #7593: Unexpected query result combining or and in operators

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #7593: Unexpected query result combining or and in operators
Дата
Msg-id 1197.1349889452@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #7593: Unexpected query result combining or and in operators  (demurcia@ockham-solutions.fr)
Список pgsql-bugs
demurcia@ockham-solutions.fr writes:
> After a little while (probably after the analyze), the query plan is changed
> and only 2 results are returned !
> "Merge Join  (cost=33.31..39.69 rows=1 width=24)"
> "  Merge Cond: (i.numero_id = n.numero_id)"
> ...
> "  ->  Index Only Scan using numero_pkey on numero n  (cost=0.00..12.57
> rows=2 width=8)"
> "        Index Cond: (numero_id = ANY ('{25393,25384}'::bigint[]))"

Yeah, there's a known bug in 9.2 with mergejoins whose inner side is an
indexscan with an =ANY condition.  There's a fix here, if you're able to
apply a patch:

http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=f2366e584aea41b980f23fcf0a2e118efd7fb09b

Otherwise, the fix will be in 9.2.2.

            regards, tom lane

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

Предыдущее
От: demurcia@ockham-solutions.fr
Дата:
Сообщение: BUG #7593: Unexpected query result combining or and in operators
Следующее
От: david.peyrieres@meteo.fr
Дата:
Сообщение: BUG #7596: Problem with /etc/init.d/postgresql.9.x file