Re: [HACKERS] Views on aggregates - need assistence - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [HACKERS] Views on aggregates - need assistence
Date
Msg-id 34F26D94.954F2734@alumni.caltech.edu
Whole thread Raw
In response to Views on aggregates - need assistence  (jwieck@debis.com (Jan Wieck))
List pgsql-hackers
> >     Before  going into details and fixing more things I must have
> >     some different view definitions and table settings (including
> >     nested  views  with and without aggregates) and what they are
> >     expected to output!
> >
> >     And please some complicated select statements building  joins
> >     from tables and the views with GROUP BY etc. too if possible.
>
> create view v as select x, sum(y) as sy from A group by x;
> select * from B, V where B.z = V.sy;
>
> - how can we handle this (aggregates in WHERE) ?
> It seems that current VIEW implementation using RULEs has
> unresolvable problems :(

Well, there may be a subset of the possible cases which could work?


pgsql-hackers by date:

Previous
From: Tom I Helbekkmo
Date:
Subject: Re: [HACKERS] Current 6.3 issues
Next
From: "Maurice Gittens"
Date:
Subject: Re: [HACKERS] How To free resources used by large object Relations?