Join question

Поиск
Список
Период
Сортировка
От Mike Friesen
Тема Join question
Дата
Msg-id Pine.LNX.4.30.0101061643410.26902-100000@mike.pmcanada.com
обсуждение исходный текст
Ответы Re: Join question
Список pgsql-novice
Hi,

I have two tables which have an identical column and their indexes are
based on this column.  I am trying to do a join on these two tables, but
it takes forever for postgresql to join these two tables.

The command i'm using is:
select * from icpr,iprc where icpr.prod_no='23' AND
icpr.prod_no=iprc.prod_no;

Can anyone tell me what I'm doing wrong?  I've tried to cluster both
tables based on their indexes, but it's still extremely slow..

Any help would be greatly appreciated,

Mike



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

Предыдущее
От: Chuck Kimber
Дата:
Сообщение: Re: Create Table Scripts
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Join question