From: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
To: Tomas Vondra <tv@fuzzy.cz>
Cc: Andrus <kobruleht2@hot.ee>
Cc: pgsql-performance@postgresql.org
Subject: Re: Using index for IS NULL query
Date: Tue, 11 Nov 2008 15:00:13 -0800
Message-ID: <1d709ecc0811111500i3c63e345qfa3be90264629256@mail.gmail.com> (raw)
In-Reply-To: <4919F2C6.4000303@fuzzy.cz>
References: <gfcprb$m40$1@news.hub.org>
<4919F2C6.4000303@fuzzy.cz>
> Yes, NULL values are not stored in the index, but you may create functional
> index on
>
Are you sure NULL values are not stored? btree, gist and bitmap index and
search for NULL values.
select amname, amindexnulls, amsearchnulls from pg_am;
amname | amindexnulls | amsearchnulls
--------+--------------+---------------
btree | t | t
hash | f | f
gist | t | t
gin | f | f
bitmap | t | t
(5 rows)
Sincerely yours,
Vladimir Sitnikov
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: sitnikov.vladimir@gmail.com, tv@fuzzy.cz, kobruleht2@hot.ee
Subject: Re: Using index for IS NULL query
In-Reply-To: <1d709ecc0811111500i3c63e345qfa3be90264629256@mail.gmail.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