Steve Northamer <stevenorthamer(at)gmail(dot)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