Re: function(contants) evaluated for every row

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: function(contants) evaluated for every row
Дата
Msg-id 16830.1290628342@sss.pgh.pa.us
обсуждение исходный текст
Ответ на function(contants) evaluated for every row  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: function(contants) evaluated for every row  (Bruce Momjian <bruce@momjian.us>)
Re: function(contants) evaluated for every row  (Marti Raudsepp <marti@juffo.org>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Notice the to_date()'s were not converted to constants in EXPLAIN so
> they are evaluated for every row.  to_date() is marked STABLE.

> Is this something we should improve?

No.  This is per expectation.  Only IMMUTABLE functions can be folded to
constants in advance of the query.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: function(contants) evaluated for every row
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: function(contants) evaluated for every row