Re: why the big difference on this explain analyze?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: why the big difference on this explain analyze?
Дата
Msg-id 15913.1016317172@sss.pgh.pa.us
обсуждение исходный текст
Ответ на why the big difference on this explain analyze?  ("Dan Langille" <dan@langille.org>)
Ответы Re: why the big difference on this explain analyze?  ("Dan Langille" <dan@langille.org>)
Список pgsql-sql
"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.

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


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Dan Langille"
Дата:
Сообщение: why the big difference on this explain analyze?
Следующее
От: "Dan Langille"
Дата:
Сообщение: Re: why the big difference on this explain analyze?