Re: more support for various frame types of window functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: more support for various frame types of window functions
Date
Msg-id 27170.1257778913@sss.pgh.pa.us
Whole thread Raw
In response to Re: more support for various frame types of window functions  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: more support for various frame types of window functions
Re: more support for various frame types of window functions
List pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> One idea is to take a copy of the state datum after each row. Then,
> instead of initializing the aggregate from scratch, you can "roll back"
> to an earlier copied state. It doesn't always help, but might be a part
> of the solution.

That requires that you know how to copy the aggregate's state.  You do
not.  (In some cases the aggregate function has extra state besides the
nominal transition datum...)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Hitoshi Harada
Date:
Subject: Re: more support for various frame types of window functions
Next
From: David Fetter
Date:
Subject: Re: more support for various frame types of window functions