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

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Bug #834: not usage index in subquerys o inner joins
Дата
Msg-id 20021203145620.CF728476468@postgresql.org
обсуждение исходный текст
Список pgsql-bugs
Gabriel Monsalvo (gmonsalvo@rentastucuman.gov.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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Mats Lofkvist
Дата:
Сообщение: Re: Bug #833: prep_buildtree and solaris ln
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Bug #833: prep_buildtree and solaris ln