Re: Sum of multiplied deltas

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gerhard Wiesinger <lists(at)wiesinger(dot)com>
Cc: David Fetter <david(at)fetter(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Sum of multiplied deltas
Date: 2009-06-08 18:45:36
Message-ID: 1551.1244486736@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gerhard Wiesinger <lists(at)wiesinger(dot)com> writes:
> Any hints for an 8.3 environment (currently)?

Use a FOR loop in plpgsql and remember the previous row's value in a
variable.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ioana Danes 2009-06-08 18:58:40 Re: Duplicate key issue in a transaction block
Previous Message Scott Marlowe 2009-06-08 18:37:28 Re: Duplicate key issue in a transaction block