Re: STABLE functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: STABLE functions
Дата
Msg-id 20595.1051283586@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: STABLE functions  (Joachim Wieland <jwieland@kawo2.rwth-aachen.de>)
Ответы Re: STABLE functions
Список pgsql-hackers
Joachim Wieland <jwieland@kawo2.rwth-aachen.de> writes:
> So why is a
>   SELECT ... FROM table WHERE col = f(...)
> (with a STABLE function f) not a "single table scan" 

The point is that the system *may* choose to evaluate f() only once,
not that it *must* do so.  The classification exists to make it valid
to use an indexscan on "col".
        regards, tom lane



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

Предыдущее
От: Joachim Wieland
Дата:
Сообщение: Re: STABLE functions
Следующее
От: pgsql@mohawksoft.com
Дата:
Сообщение: Re: close() vs. closesocket()