From: | Tomas Vondra <tv(at)fuzzy(dot)cz> |
---|---|
To: | |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Using index for IS NULL query |
Date: | 2008-11-13 00:27:31 |
Message-ID: | 491B7473.3050407@fuzzy.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Well, you're obviously right - I didn't know this. I guess I've found
that the index is not used for null values, and deduced somehow that
NULL values are not stored in the index.
Thanks, it's nice to find out a 'bug' before it's too late :-)
regards
Tomas
> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2008-11-13 02:26:02 | Re: Performance Question |
Previous Message | Tomas Vondra | 2008-11-13 00:20:11 | Re: slow full table update |