Re: why the need for is null? - Mailing list pgsql-general

From Greg Stark
Subject Re: why the need for is null?
Date
Msg-id 87n0933sta.fsf@stark.dyndns.tv
Whole thread Raw
In response to Re: why the need for is null?  (Mike Mascari <mascarm@mascari.com>)
List 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 by date:

Previous
From: Gregory Wood
Date:
Subject: 7.4.1 Server Not Starting?
Next
From: Tom Lane
Date:
Subject: Re: GetLastInsertID ?