Re: Sum of multiplied deltas - Mailing list pgsql-general

From Tom Lane
Subject Re: Sum of multiplied deltas
Date
Msg-id 1551.1244486736@sss.pgh.pa.us
Whole thread Raw
In response to Re: Sum of multiplied deltas  (Gerhard Wiesinger <lists@wiesinger.com>)
List pgsql-general
Gerhard Wiesinger <lists@wiesinger.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

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Duplicate key issue in a transaction block
Next
From: Ioana Danes
Date:
Subject: Re: Duplicate key issue in a transaction block