From: Predrag Lesic <predragl@cg.yu>
To: pgsql-sql@postgreSQL.org
Subject: SELECT .. WHERE field IN (SELECT .. )
Date: Tue, 27 Jul 1999 11:21:19 +0200
Message-ID: <379D7A0E.C840D9C2@cg.yu> (raw)
I have problem with next query
SELECT COUNT(*) FROM TABLE1 WHERE field1 IN (SELECT DISTINCT field2
FROM TABLE2 WHERE field3>'some date')
Processing time of the query is toooooooooo long. I didn't get the
answer. Postgres is doing something, I can see disk is working for some
time, and the query is running. But how long?????
Thank's
Predrag
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: predragl@cg.yu
Subject: Re: SELECT .. WHERE field IN (SELECT .. )
In-Reply-To: <379D7A0E.C840D9C2@cg.yu>
References: <379D7A0E.C840D9C2@cg.yu>
* 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