That's what I was afraid of :-( I'm currently on 8.2 We're planning on starting 9.0 testing very soon, so I may just leave it until then. Sim On 6/24/2010 5:23 PM, Greg Smith wrote: > > If you're on an earlier version, using a loop in a function is not a > bad approach. Getting the query right without windowing is possible, > but painful enough that it may not be worth your trouble. > -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general