From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve Northamer <stevenorthamer@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: plpgsql function executed multiple times for each return value
Date: Sat, 08 Oct 2011 12:32:01 -0400
Message-ID: <11372.1318091521@sss.pgh.pa.us> (raw)
In-Reply-To: <4E8DEC80.3010706@gmail.com>
References: <4E8DEC80.3010706@gmail.com>
Steve Northamer <stevenorthamer@gmail.com> writes:
> So my questions are: 1) How do we cause the paymentcalc function to be
> executed only once?
In recent versions, I think marking it volatile would be sufficient.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, stevenorthamer@gmail.com
Subject: Re: plpgsql function executed multiple times for each return value
In-Reply-To: <11372.1318091521@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox