Re: ERROR: ExecEvalAggref: no aggregates in thisexpressioncontext

Поиск
Список
Период
Сортировка
От Paul McGarry
Тема Re: ERROR: ExecEvalAggref: no aggregates in thisexpressioncontext
Дата
Msg-id 396416F7.F5603074@opentec.com.au
обсуждение исходный текст
Ответ на ERROR: ExecEvalAggref: no aggregates in this expression context  (Paul McGarry <paulm@opentec.com.au>)
Список pgsql-sql
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
Вложения

В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: ExecEvalAggref: no aggregates in this expressioncontext
Следующее
От: JanWieck@t-online.de (Jan Wieck)
Дата:
Сообщение: Re: [GENERAL] lztext and compression ratios...