From: Josh Berkus <josh@agliodbs.com>
To: Matt Mello <alien@spaceship.com>
To: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: ISNULL performance tweaks
Date: Thu, 6 Mar 2003 11:12:07 -0800
Message-ID: <200303061112.07285.josh@agliodbs.com> (raw)
In-Reply-To: <3E67989F.7030001@spaceship.com>
References: <3E67989F.7030001@spaceship.com>
Matt,
> Man, I wish PG indexed nulls! Is there any plan on adding these in the
> future?
BTW, this is a design argument. As far as a lot of SQL-geeks are concerned
(and I'm one of them) use of NULLs should be minimized or eliminiated
entirely from well-normalized database designs. In such designs, IS NULL
queries are used only for outer joins (where indexes don't matter) or for
data integrity maintainence (where query speed doesn't matter).
As a result, the existing core team doesn't see this issue as a priority.
What fixing it requires is a new programmer who cares enough about it to hack
it. What would be really nice is the ability to create an index WITH NULLS,
as follows:
CREATE INDEX idx_tablename_one ON tablename(column_one) WITH NULLS;
--
-Josh Berkus
Aglio Database Solutions
San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, alien@spaceship.com
Subject: Re: ISNULL performance tweaks
In-Reply-To: <200303061112.07285.josh@agliodbs.com>
References: <3E67989F.7030001@spaceship.com> <200303061112.07285.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox