Re: Optimizer & boolean syntax

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Optimizer & boolean syntax
Дата
Msg-id 20021121225554.GD12021@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: Optimizer & boolean syntax  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-hackers
On Thu, Nov 21, 2002 at 02:45:34PM -0800, Christopher Kings-Lynne wrote:
> > > I think his point is that they _should_ be equivalent.  Surely there's
> > > something in the optimiser that discards '=true' stuff, like 'a=a'
> should be
> > > discarded?

> Not that I see the point of indexing booleans, but hey :)

If one of the values is much more infrequent than the other, you can
probably get a substantial win using a partial index, can't you?

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Everybody understands Mickey Mouse. Few understand Hermann Hesse.
Hardly anybody understands Einstein. And nobody understands Emperor Norton."


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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Optimizer & boolean syntax
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Optimizer & boolean syntax