Re: [PATCH] Partial indicies almost working (I think)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [PATCH] Partial indicies almost working (I think)
Date: 2001-07-03 17:57:57
Message-ID: 25124.994183077@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> So, as far as I can tell, partial indecies would be completely usable, *if*
> I could get the planner to use them. I'm pretty sure it goes wrong in
> create_index_paths. The pred_test works fine but somewhere in the lines
> below it doesn't realise it can use the index.

Offhand I don't see why the existence of a predicate would matter. If
you set enable_seqscan to FALSE, does it start using the index?

regards, tom lane

PS: please don't use // comments in Postgres code. They're unportable.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Patrick Macdonald 2001-07-03 18:10:54 Red Hat Database Development
Previous Message Tom Lane 2001-07-03 17:39:22 Re: pqReadData() -- backend closed on COPY