Re: [SQL] Backend closes caused by query on a view?! - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: [SQL] Backend closes caused by query on a view?!
Date
Msg-id 199903131606.LAA10029@candle.pha.pa.us
Whole thread Raw
In response to Backend closes caused by query on a view?!  ("Viktor A." <a2891891@smail.Uni-Koeln.DE>)
List 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 by date:

Previous
From: "Viktor A."
Date:
Subject: Backend closes caused by query on a view?!
Next
From: Clark Evans
Date:
Subject: OT: Modeling Tools