Re: BUG #14107: Major query planner bug regarding subqueries and indices

Поиск
Список
Период
Сортировка
От Mathias Kunter
Тема Re: BUG #14107: Major query planner bug regarding subqueries and indices
Дата
Msg-id 629ecf23-b7b2-2d73-6792-150b111e83ab@gmail.com
обсуждение исходный текст
Ответ на Re: BUG #14107: Major query planner bug regarding subqueries and indices  (Yaroslav <ladayaroslav@yandex.ru>)
Ответы Re: BUG #14107: Major query planner bug regarding subqueries and indices  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
> Seems like it. I've asked folks on IRC for help, and it was confirmed the
> bug exists since 8.2


So, as it currently stands, queries of the following synopsis are de
facto unusable with PostgreSQL, as these will always ignore any existing
indices and trigger a full table scan instead:


SELECT ... FROM a WHERE a.x = ? OR a.y IN (...);

SELECT ... FROM a JOIN b ON (...) WHERE a.x = ? OR b.y = ?;


The following SQL fiddle demonstrates the bug:
http://sqlfiddle.com/#!15/ab714/2

Does anybody care? Shouldn't something like this be fixed ASAP??

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

Предыдущее
От: Nick Cleaton
Дата:
Сообщение: Re: streaming replication master can fail to shut down
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #14107: Major query planner bug regarding subqueries and indices