From: Vadim Mikheev <vadim@krs.ru>
To: Jan Wieck <jwieck@debis.com>
Cc: s-fery@kkt.sote.hu
Cc: pgsql-sql@postgreSQL.org
Cc: hackers@postgreSQL.org
Subject: Re: [HACKERS] Re: [SQL] cursor and update + view
Date: Tue, 24 Nov 1998 21:00:39 +0700
Message-ID: <365ABC07.9534B144@krs.ru> (raw)
References: <m0ziHDG-000EBYC@orion.SAPserv.Hamburg.dsh.de>
Jan Wieck wrote:
>
> There is another thing that I would like to have. The current
> rule system tries to turn a qualification that uses an
> aggregate column of a view into a subquery. This is because
> the planner doesn't support plain aggregate expressions in
> the qualification. If it would be possible to have another
> type of Var node that points to a targetlist entry, we could
> put the aggregates from the qualification into junk TLE's.
This thing would also handled by subqueries in FROM!
Having support in planner/executor for queries like this:
select * from A, (select c, max(d) as m from B group by c) SQ
where SQ.c = A.x and SQ.m = A.y
rule system will be able to put _any_ VIEW' query into
FROM clause...
Vadim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: vadim@krs.ru, jwieck@debis.com, s-fery@kkt.sote.hu, hackers@postgreSQL.org
Subject: Re: [HACKERS] Re: [SQL] cursor and update + view
In-Reply-To: <365ABC07.9534B144@krs.ru>
References: <m0ziHDG-000EBYC@orion.SAPserv.Hamburg.dsh.de> <365ABC07.9534B144@krs.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox