pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tobias Brox <tobias@nordicbet.com>
To: Tobias Brox <tobias@nordicbet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index on a NULL-value
Date: Wed, 1 Jun 2005 13:42:51 +0800
Message-ID: <20050601054251.GT26100@tobias.exoweb.net> (raw)
In-Reply-To: <20050531030207.GD26100@tobias.exoweb.net>
References: <20050531030207.GD26100@tobias.exoweb.net>

[Tobias Brox - Tue at 11:02:07AM +0800]
> I read in the manual today:
> 
>   Indexes are not used for IS NULL clauses by default. The best way to use
>   indexes in such cases is to create a partial index using an IS NULL
>   predicate.

I have summarized this thread in a postgresql doc user comment, posted at
http://www.postgresql.org/docs/current/interactive/sql-createindex.html

I think it's a good thing to do, since it can be difficult to search the
mailing list archives :-)

-- 
Tobias Brox, Beijing



view thread (12+ messages)

Message-ID: <20050601054251.GT26100@tobias.exoweb.net>
Permalink:  ../20050601054251.GT26100@tobias.exoweb.net/
Also on:    postgresql.org/message-id/20050601054251.GT26100@tobias.exoweb.net

 · 

reply

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: tobias@nordicbet.com
  Subject: Re: Index on a NULL-value
  In-Reply-To: <20050601054251.GT26100@tobias.exoweb.net>
  References: <20050531030207.GD26100@tobias.exoweb.net> <20050601054251.GT26100@tobias.exoweb.net>

* 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