From: Jochem van Dieten <nomail@dev.null>
To: pgsql-sql@postgresql.org
Subject: Re: Long-running DELETE...WHERE...
Date: Mon, 14 Jan 2002 23:47:37 +0100
Message-ID: <3C436009.40204@dev.null> (raw)
References: <d40a65a1.0201141027.6b15bc97@posting.google.com>
Jeff Boes wrote:
> Why would a delete involving a subselect run so much longer than the
> individual delete commands?
Some SQL statements are faster than others. Try to rewrite your query to
use EXISTS instead of IN and see if it makes any difference. I would
recommend using EXPLAIN to find out what PostgreSQL is really doing and
optimize from there.
jochem
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: nomail@dev.null
Subject: Re: Long-running DELETE...WHERE...
In-Reply-To: <3C436009.40204@dev.null>
* 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