Re: [HACKERS] Views on aggregates - need assistence
Thomas Lockhart <lockhart@alumni.caltech.edu>
From: "Thomas G. Lockhart" <lockhart@alumni.caltech.edu>
To: Jan Wieck <jwieck@debis.com>
Cc: "Vadim B. Mikheev" <vadim@sable.krasnoyarsk.su>, PostgreSQL HACKERS <pgsql-hackers@postgresql.org>
Date: 1998-02-24T06:49:56Z
Lists: 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?