Re: Selectivity of "=" (Re: [HACKERS] Index not used on simple se lect)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zeugswetter Andreas IZ5 <Andreas(dot)Zeugswetter(at)telecom(dot)at>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Selectivity of "=" (Re: [HACKERS] Index not used on simple se lect)
Date: 1999-07-28 14:16:47
Message-ID: 9731.933171407@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Zeugswetter Andreas IZ5 <Andreas(dot)Zeugswetter(at)telecom(dot)at> writes:
>> Yes, I think we index nulls. What are partial indexes?
>>
> A create index statement that accepts a where condition. All
> rows that satisfy the where condition are indexed, others not.
> This needs intelligence in the optimizer.

> This was in postgresql code some time ago, but was removed
> for some reason I don't remember.

It was? There's still a ton of code in the optimizer to support it
(a big chunk of indxqual.c is for testing index predicates).

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-07-28 14:19:40 Re: [HACKERS] SELECT FOR UPDATE in (PL/pgSQL) function
Previous Message Tom Lane 1999-07-28 13:50:31 Re: [HACKERS] Checking if a system is ELF