Re: Analyze not doing anything?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Analyze not doing anything?
Дата
Msg-id 20040210130610.GA24722@wolff.to
обсуждение исходный текст
Ответ на Re: Analyze not doing anything?  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-general
On Mon, Feb 09, 2004 at 18:39:48 -0600,
  "Jim C. Nasby" <jim@nasby.net> wrote:
> Hrm, I didn't realize that. Is it in the docs anywhere? I didn't see it
> in Chapter 11... I'm particularly interested in why NULL/NOT NULL isn't
> indexable.
>
> Are where clauses on indexes like
>
> email_contrib__team_id btree (team_id) WHERE (team_id IS NOT NULL)
>
> still valid/usefull? If I wanted to create the converse of that index,

While IS NULL and IS NOT NULL are not indexable, they can be used as
restrictions for partial indexes. If the matching clause is used in
a where clause, then the partial index could potentially be used
for executing the query.

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: number of rows in a cursor
Следующее
От: "veramente@libero.it"
Дата:
Сообщение: Strange Slow query