From: John Pauley <karstdiver@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: SELECT statement never completes.
Date: Wed, 9 Oct 2002 10:10:21 -0700 (PDT)
Message-ID: <20021009171021.25211.qmail@web13408.mail.yahoo.com> (raw)
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
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: karstdiver@yahoo.com
Subject: Re: SELECT statement never completes.
In-Reply-To: <20021009171021.25211.qmail@web13408.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