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 13053.1218032831@sss.pgh.pa.us
Whole thread Raw
In response to Re: Status of DISTINCT-by-hashing work  ("Hitoshi Harada" <umi.tanuki@gmail.com>)
Responses Re: Status of DISTINCT-by-hashing work  ("Hitoshi Harada" <umi.tanuki@gmail.com>)
List pgsql-hackers
"Hitoshi Harada" <umi.tanuki@gmail.com> writes:
> In my patch nodeWindow.c, some functions reach for its parent state
> node to get info of sort keys by using fcinfo->context. This works but
> is completely ugly.

Isn't that the same thing nodeAgg does: pass its AggState to aggregate
functions?  I don't see anything ugly about it --- at least, any
alternative you care to name is likely to be far worse.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: plan invalidation vs stored procedures
Next
From: Hannu Krosing
Date:
Subject: Re: plan invalidation vs stored procedures