| От | Bruno Wolff III |
|---|---|
| Тема | Re: BUG #1252: Optimization of SELECT for NOT NULL case |
| Дата | |
| Msg-id | 20040916173614.GA18500@wolff.to обсуждение исходный текст |
| Ответ на | Re: BUG #1252: Optimization of SELECT for NOT NULL case ("Alexander Kirpa" <postgres@bilteks.com>) |
| Список | pgsql-bugs |
On Wed, Sep 15, 2004 at 23:29:43 +0300, Alexander Kirpa <postgres@bilteks.com> wrote: > On 15 Sep 2004, at 12:21, Bruno Wolff III wrote: > > Regarding your point of view possible exist reason for remove > optimization for case like below > SELECT count(*) from x where id>1 AND id<0 > I basically don't see any significant difference in optimization > for "id IS NULL" and "id>1 AND id<0" People generally know whether or not a table is NOT NULL and aren't very likely to write queries searching for NULL values in such a table. A general constraint handler would be useful (for example in handling partitions of data sets), but just doing it for NOT NULL seems like it would be a net loss.
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера