| От | Andres Freund |
|---|---|
| Тема | Re: Optimizing NOT IN plans / verify rewrite |
| Дата | |
| Msg-id | 20100802221900.GC2892@anarazel.de обсуждение исходный текст |
| Ответ на | Re: Optimizing NOT IN plans / verify rewrite (Maciek Sakrejda <msakrejda@truviso.com>) |
| Список | pgsql-performance |
On Mon, Aug 02, 2010 at 01:35:13PM -0700, Maciek Sakrejda wrote: > >> All fields involved are declared NOT NULL, but thanks for the heads up. > >Afair the planner doesnt use that atm. > > I was referring to not having to care about the strange NULL semantics > (as per your original comment), since I have no NULLs. Given that, I > think the NOT EXISTS could be a good solution, even on 8.3 (we're > planning to upgrade, but it's not a feasible solution to this > particular problem), no? The point is that only 8.4 will optimize that case properly. 8.3 will generate plans which are inefficient in many (or most) cases for both variants. I would suggest to use manual antijoins...
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера