SELECT statement never completes.

Поиск
Список
Период
Сортировка
От John Pauley
Тема SELECT statement never completes.
Дата
Msg-id 20021009171021.25211.qmail@web13408.mail.yahoo.com
обсуждение исходный текст
Ответы Re: SELECT statement never completes.
Список pgsql-sql
pgsql-sql,

We are porting a database from IBM DB2 to PostgreSQL. 
In several related scripts, there is a SELECT
statement that never completes in Postgres but
completes in a few seconds using DB2, for example:

Table row count:
SELECT count(*) FROM tableX;112671
SELECT count(*) from tableY;314625

This statement does not complete:
SELECT id FROM tableX WHERE id NOT IN (SELECT id FROM
tableY);

Any suggestions?
Thanks

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com


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

Предыдущее
От: "Jose Antonio Leo"
Дата:
Сообщение: problem with the Index
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: SELECT statement never completes.