Re: Does PG cache results of an aggregate function, (and results of non-volatile functions)?
В списке pgsql-general по дате отправления:
| От | Merlin Moncure |
|---|---|
| Тема | Re: Does PG cache results of an aggregate function, (and results of non-volatile functions)? |
| Дата | |
| Msg-id | b42b73150909180608p7fe2dca6tbdeefba016e9ec77@mail.gmail.com обсуждение |
| Ответ на | Does PG cache results of an aggregate function, (and results of non-volatile functions)? (Allan Kamau <kamauallan@gmail.com>) |
| Ответы |
Re: Does PG cache results of an aggregate function, (and results of non-volatile functions)?
|
| Список | pgsql-general |
On Thu, Sep 3, 2009 at 3:44 AM, Allan Kamau <kamauallan@gmail.com> wrote: > Hi, > I do have a query which make use of the results of an aggregate > function (for example bit_or) several times in the output column list > of the SELECT clause, does PostgreSQL simply execute the aggregate > function only once and provide the output to the other calls to the > same aggregate function. > How about the case of non volatile functions? Do they get executed as > many times as they occur in the select clause? I don't think so...could you provide a better example? It sounds like your query is one that might benefit from use of CTE... merlin
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера