Bug #834: not usage index in subquerys o inner joins

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #834: not usage index in subquerys o inner joins
Date: 2002-12-03 14:56:20
Message-ID: 20021203145620.CF728476468@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Gabriel Monsalvo (gmonsalvo(at)rentastucuman(dot)gov(dot)ar) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
not usage index in subquerys o inner joins

Long Description
PostgreSQL makes sequencial scans when uses subqueries or inner joins like:
select * from ctacte where numoble in (select numoble from obligacion where numoble='2500001368995');
or:
select c.* from ctacte c inner join obligacion o on (c.numoble=0.numoble and o.objeto='00000007314')

we have ten million of records in our tables and you can imagine how much time that takes long....

Any solution? or idea?

Sample Code

No file was uploaded with this report

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2002-12-03 16:12:02 Re: Bug #833: prep_buildtree and solaris ln
Previous Message Mats Lofkvist 2002-12-03 13:28:18 Re: Bug #833: prep_buildtree and solaris ln