Re: [SQL] Backend closes caused by query on a view?!
| От | Bruce Momjian |
|---|---|
| Тема | Re: [SQL] Backend closes caused by query on a view?! |
| Дата | |
| Msg-id | 199903131606.LAA10029@candle.pha.pa.us обсуждение |
| Ответ на | Backend closes caused by query on a view?! ("Viktor A." <a2891891@smail.Uni-Koeln.DE>) |
| Список | pgsql-sql |
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi!
>
> Can anybody tell me, what I'm doing so wrong,
> that the backend needs to close the connection?
> I've got a view that gives me a total of costs for
> each day, which looks like this:
>
> create view view_test AS
> select date(datum_zeit),sum(betrag) AS "summe"
> from anrufe_isdn where richtung='True'
> AND date(datum_zeit)>date(timemi(now() ::datetime, '30 day' ::timespan))
> group by date(datum_zeit);
We have some problems with aggregates in views, I think.
The TODO list says:
* views containing aggregates sometimes fail(Jan)
--
Bruce Momjian | http://www.op.net/~candle
maillist@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
В списке pgsql-sql по дате отправления: