pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul McGarry <paulm@opentec.com.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@hub.org
Subject: Re: ERROR: ExecEvalAggref: no aggregates in thisexpressioncontext
Date: Thu, 06 Jul 2000 15:19:51 +1000
Message-ID: <396416F7.F5603074@opentec.com.au> (raw)
References: <200007042201.e64M1GS36467@hub.org>
	<3962834C.5EF48AB7@opentec.com.au>
	<3397.962817322@sss.pgh.pa.us>
	<3963DA0C.B248C79D@opentec.com.au>
	<20348.962858664@sss.pgh.pa.us>


Tom Lane wrote:
> View?  Hmm, we know that views involving GROUP BY or aggregates
> don't work very well.  We hope to fix those problems in 7.2, but
> right now there's probably not much that can be done about it.
> I'd recommend avoiding views that use those features for now.

Yes, I've just discovered the Todo list :) Oh well, it probably
needed rethinking anyway.....I want fast retrieval over fast
update so I probably want to do my min() and max() magic with
triggers on insert/update/delete rather than on each select
with the view.

In any case I have attached some SQL which sets up tables and
generates the ExecEvalAggref I was getting in case it is of
any use to anyone.

Cheers.

-- 
Paul McGarry            mailto:paulm@opentec.com.au 
Systems Integrator      http://www.opentec.com.au 
Opentec Pty Ltd         http://www.iebusiness.com.au
6 Lyon Park Road        Phone: (02) 9878 1744 
North Ryde NSW 2113     Fax:   (02) 9878 1755

Attachments:

  execeval.sql (application/x-unknown-content-type-sql_auto_file, 1.5K) download

view thread (6+ messages)

Message-ID: <396416F7.F5603074@opentec.com.au>
Permalink:  ../396416F7.F5603074@opentec.com.au/
Also on:    postgresql.org/message-id/396416F7.F5603074@opentec.com.au

 · 

reply

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: paulm@opentec.com.au, tgl@sss.pgh.pa.us, pgsql-sql@hub.org
  Subject: Re: ERROR: ExecEvalAggref: no aggregates in thisexpressioncontext
  In-Reply-To: <396416F7.F5603074@opentec.com.au>
  References: <200007042201.e64M1GS36467@hub.org> <3962834C.5EF48AB7@opentec.com.au> <3397.962817322@sss.pgh.pa.us> <3963DA0C.B248C79D@opentec.com.au> <20348.962858664@sss.pgh.pa.us> <396416F7.F5603074@opentec.com.au>

* 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