Re: Too many function calls in view with LEFT JOIN

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Too many function calls in view with LEFT JOIN
Дата
Msg-id 4725.1149028861@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Too many function calls in view with LEFT JOIN  (Andreas Heiduk <Andreas.Heiduk@web.de>)
Список pgsql-bugs
Andreas Heiduk <Andreas.Heiduk@web.de> writes:
> If a view which calls a function is LEFT JOINed to a table but not all
> result rows are matched by some criteria, then the function is called
> for each row of the view nevertheless.

> Note that this seems to happen only for left joins, not for a inner join.

I believe that's because the column is required to go to NULL in an
unjoined row.  With a non-strict function, evaluating it after the join
could yield wrong answers.  Try making the function strict.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: int64 and spi_getbinval bug !?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: strange (numeric) casting behaviour