Re: Null values in indexes

Поиск
Список
Период
Сортировка
Искать
От
Jan Wieck
Тема
Re: Null values in indexes
Дата
в 10:44:06
Msg-id
200205291438.g4TEcbb19114@saturn.janwieck.net
Ответ на
Список
Дерево обсуждения
Re: Null values in indexes "Dann Corbit" <DCorbit@connx.com>
Re: Null values in indexes "Chris Hodgson" <chodgson@refractions.net>
Re: Null values in indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: Null values in indexes Oleg Bartunov <oleg@sai.msu.su>
Re: Null values in indexes Tom Lane <tgl@sss.pgh.pa.us>
Tom Lane wrote:
> Hannu Krosing  writes:
> > How hard would it be to _not_ include nulls in indexes
> > as they are not used anyway.
>
> Seems to me that would be a step backwards.
   It  would cause multi-key indexes beeing unusable for partial   key lookup. Imagine you have a key over (a, b, c)  and  query   with  WHERE  a = 1 AND b = 2. This query cannot use the index   if a NULL value in c  would  cause  the  index  entry  to  be   suppressed.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: Backend died abnormally
От: Kenneth Chan
Дата:
FAQ