Re: Partial index on date column

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Partial index on date column
Date: 2003-03-07 10:31:03
Message-ID: 1047033063.1769.6.camel@fuji.krosing.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne kirjutas R, 07.03.2003 kell 07:28:
> Yeah, it's not really a problem for me, I just put the extra clause in.
>
> Is indexing excluding NULLs a common application of partial indexes?

For me it is ;)

> It's
> basically all I use it for, when a column has like 90-95% NULLS and I want
> to exclude them from the index.

> Is it worth hard-coding in the IS NOT NULL case?

I'd vote for it.

------------
Hannu

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2003-03-07 11:25:41 SQL parser error
Previous Message Hannu Krosing 2003-03-07 10:28:26 Re: Win32 Powerfail testing