Re: function not called if part of aggregate

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: function not called if part of aggregate
Дата
Msg-id 20060611174837.GF34196@pervasive.com
обсуждение исходный текст
Ответ на function not called if part of aggregate  ("Craig A. James" <cjames@modgraph-usa.com>)
Список pgsql-performance
On Sun, Jun 11, 2006 at 10:18:20AM -0700, Craig A. James wrote:
> This doesn't seem right to me -- how can the optimizer possibly know that a
> function doesn't have a side effect, as in my case?  Functions could do all
> sorts of things, such as logging activity, filling in other tables, etc,
> etc.
>
> Am I missing something here?

Read about function stability in the docs.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: function not called if part of aggregate
Следующее
От: Greg Stark
Дата:
Сообщение: Re: function not called if part of aggregate