Re: why the big difference on this explain analyze?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dan(at)langille(dot)org
Cc: pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: why the big difference on this explain analyze?
Date: 2002-03-16 22:19:32
Message-ID: 15913.1016317172@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Dan Langille" <dan(at)langille(dot)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.

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.)

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Dan Langille 2002-03-16 22:22:55 Re: why the big difference on this explain analyze?
Previous Message Dan Langille 2002-03-16 22:07:49 why the big difference on this explain analyze?