Re: Status of DISTINCT-by-hashing work - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Status of DISTINCT-by-hashing work
Date
Msg-id 13398.1218033772@sss.pgh.pa.us
Whole thread Raw
In response to Re: Status of DISTINCT-by-hashing work  ("Hitoshi Harada" <umi.tanuki@gmail.com>)
List pgsql-hackers
"Hitoshi Harada" <umi.tanuki@gmail.com> writes:
> Correct. I learned that method from nodeAgg. What I meant was that
> window functions reach for plan node and its sort keys through
> winstate->ss.ps. The mechanism is not ugly but some macros or exposed
> API seem more comfortable, especially if thinking about formulating
> window functions as user-defined functions.

Agreed, I was about to suggest the same thing.  Have the window
functions pass the WindowState to some interface code that gets what
they need for them.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Hitoshi Harada"
Date:
Subject: Re: Status of DISTINCT-by-hashing work
Next
From: "Pavel Stehule"
Date:
Subject: 8.3 planner ignore index with text_pattern_ops for eq