Re: Does PG cache results of an aggregate function, (and results of non-volatile functions)?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Allan Kamau <kamauallan(at)gmail(dot)com>
Cc: Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Does PG cache results of an aggregate function, (and results of non-volatile functions)?
Date: 2009-09-17 20:43:12
Message-ID: 200909172043.n8HKhCY03690@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Allan Kamau 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 did not see a reply to this. Does anyone know the answer?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2009-09-17 20:47:16 Re: Substitutes for some Oracle packages
Previous Message Scott Marlowe 2009-09-17 20:27:40 Re: haversine formula with postgreSQL