Re: STABLE has no effect on PL/pgsql functions

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: STABLE has no effect on PL/pgsql functions
Дата
Msg-id 1180690928.15764.229.camel@linda.lfix.co.uk
обсуждение исходный текст
Ответ на STABLE has no effect on PL/pgsql functions  (psql-novice@netzach.co.il)
Список pgsql-novice
On Fri, 2007-06-01 at 11:54 +0300, psql-novice@netzach.co.il wrote:
> I noted in my PG 7.4 on Debian Sarge the following behavior:

Pg 7.4 is 3 versions out of date.  Even Debian Sarge is no longer Debian
stable; I think you need to get up to date.

> EXPLAIN ANALYZE SELECT *,reallyHeavyFunctionDefinedAsImmutable() FROM
> my_table;
> time taken: forever
>
> EXPLAIN ANALYZE SELECT *,
> (SELECT reallyHeavyFunctionDefinedAsImmutable())
> FROM my_table;
> time taken: not very long

You have to post the full output of both for anyone to have a chance of
explaining the difference.
--
Oliver Elphick                                          olly@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
                 ========================================
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


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

Предыдущее
От: psql-novice@netzach.co.il
Дата:
Сообщение: Re: STABLE has no effect on PL/pgsql functions
Следующее
От: "David Monarchi"
Дата:
Сообщение: assign null value to a field in plpgsql