Re: planner doesn't use multicolumn index

From: Tomasz Myrta <jasiek(at)klaster(dot)net>
To: Adrian Demaestri <ademaestri(at)yahoo(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: planner doesn't use multicolumn index
Date: 2003-10-08 14:18:23
Message-ID: 3F841CAF.6070202@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> We've a table with about 8 million rows, and we need to get rows by the
> value of two of its fields( the type of the fields are int2 and int4,
> the where condition is v.g. partido=99 and partida=123). We created a
> multicolumn index on that fields but the planner doesn't use it, it
> still use a seqscan. That fields are primary key of the table and we
> clusterded the table based on that index, but it still doesn't work. We
> also set the enviroment variable enable_seqscan to false and nathing
> happends. The only way the planner use it is in querys that order by the
> expression of the index.
> Any idea?
> thanks.
> Adrián

where partido=99::int2 and partida=123;

Regards,
Tomasz Myrta

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Shridhar Daithankar 2003-10-08 14:27:38 Re: planner doesn't use multicolumn index
Previous Message Adrian Demaestri 2003-10-08 14:08:59 planner doesn't use multicolumn index