Re: where clause + function, execution order

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: where clause + function, execution order
Дата
Msg-id 5921.1321027215@sss.pgh.pa.us
обсуждение исходный текст
Ответ на where clause + function, execution order  (Sorin Dudui <sd@wigeogis.com>)
Список pgsql-performance
Sorin Dudui <sd@wigeogis.com> writes:
> I am wondering when the where clause (a.x = 'value') is executed. After the select statement in the function
finishes?Or is it appended at the select statement in the function? 

EXPLAIN is your friend ...

In this case the function looks inline-able, so reasonably recent
versions of PG should do what you want.

            regards, tom lane

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: where clause + function, execution order
Следующее
От: Sorin Dudui
Дата:
Сообщение: Re: where clause + function, execution order