Re: Static functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com>
Cc: "Joseph S" <jks(at)selectacast(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Static functions
Date: 2008-10-04 03:19:58
Message-ID: 17695.1223090398@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com> writes:
> Shouldn't PG make all efforts to not execute something when the result is
> already known?

Not if said effort would cost more than is saved, which would be by far
the most likely result if we tried to cache all function results.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gurjeet Singh 2008-10-04 04:10:53 Re: Static functions
Previous Message cyw 2008-10-04 03:08:17 ST_Intersects vs. ST_Touches