pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Demaestri <ademaestri@yahoo.com>
To: pgsql-performance@postgresql.org
Subject: planner doesn't use multicolumn index
Date: Wed, 8 Oct 2003 09:08:59 -0500 (CDT)
Message-ID: <20031008140859.21016.qmail@web10510.mail.yahoo.com> (raw)

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



---------------------------------
Do You Yahoo!?
Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo.
Visíta Yahoo! Noticias.

view thread (4+ messages)  latest in thread

Message-ID: <20031008140859.21016.qmail@web10510.mail.yahoo.com>
Permalink:  ../20031008140859.21016.qmail@web10510.mail.yahoo.com/
Also on:    postgresql.org/message-id/20031008140859.21016.qmail@web10510.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: ademaestri@yahoo.com
  Subject: Re: planner doesn't use multicolumn index
  In-Reply-To: <20031008140859.21016.qmail@web10510.mail.yahoo.com>
  References: <20031008140859.21016.qmail@web10510.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox