Re: why the need for is null?

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: why the need for is null?
Дата
Msg-id 87n0933sta.fsf@stark.dyndns.tv
обсуждение исходный текст
Ответ на Re: why the need for is null?  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-general
Mike Mascari <mascarm@mascari.com> writes:

> PostgreSQL doesn't index NULLs

Postgres does index NULLs.

However "IS NULL" can't currently use the index, which in this case is
effectively the same thing as they're not being indexed.

However there are other cases like ORDER BY where the fact that Postgres does
index NULLs is important. By comparison Oracle does not index NULLs and as a
result performs differently when doing ORDER BY without a where clause that
excludes NULLs.

--
greg

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

Предыдущее
От: Gregory Wood
Дата:
Сообщение: 7.4.1 Server Not Starting?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: GetLastInsertID ?