pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Langille <dan@langille.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: why the big difference on this explain analyze?
Date: Sat, 16 Mar 2002 17:22:55 -0500
Message-ID: <20020316222258.15B653F28@bast.unixathome.org> (raw)
In-Reply-To: <15913.1016317172@sss.pgh.pa.us>
References: <20020316220751.A5EE73F28@bast.unixathome.org>

On 16 Mar 2002 at 17:19, Tom Lane wrote:

> "Dan Langille" <dan@langille.org> writes:
> > The difference between the two SQL statements is the inclusion of 
> > Ports_Check in the WHERE EXISTS select clause.
> 
> Which caused it to do the wrong thing.  I think you'll find this
> command set found_in_ports = TRUE in *every* row of Ports_Check.

Yes, it did.  Not quite what I want either....

> Reason: the EXISTS clause no longer depends on the outer update,
> but evaluates to a constant TRUE.  (Or possibly a constant FALSE,
> but that seems unlikely.)

Seems I'll have to keep searching for my speed improvement.  Thanks for 
pointing out that problem.  cheers.
-- 
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples




view thread (4+ messages)  latest in thread

Message-ID: <20020316222258.15B653F28@bast.unixathome.org>
Permalink:  ../20020316222258.15B653F28@bast.unixathome.org/
Also on:    postgresql.org/message-id/20020316222258.15B653F28@bast.unixathome.org

 · 

reply

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: dan@langille.org, tgl@sss.pgh.pa.us
  Subject: Re: why the big difference on this explain analyze?
  In-Reply-To: <20020316222258.15B653F28@bast.unixathome.org>
  References: <20020316220751.A5EE73F28@bast.unixathome.org> <20020316222258.15B653F28@bast.unixathome.org>

* 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