Backend closes caused by query on a view?!

From: "Viktor A(dot)" <a2891891(at)smail(dot)Uni-Koeln(dot)DE>
To: "Postgres-SQL" <pgsql-sql(at)postgresql(dot)org>
Subject: Backend closes caused by query on a view?!
Date: 1999-03-13 09:54:36
Message-ID: 002f01be6d37$815ae840$0200a8c0@Tischrechner.rrz.uni-koeln.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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);

It works very well, if I do the query:

select * from view_anrufe;
or
select date,summe from view_anrufe;

But If I do:

select summe from view_anrufe;
or
select avg(summe) from view_anrufe;

I get:

pqReadData() -- backend closed the channel unexpectedly.
This probably means the backend terminated abnormally before or
while processing the request.
We have lost the connection to the backend, so further
processing is
impossible. Terminating.

I'm running Postgresql Version 6.4 on a Linux-box with Kernel V.2.0.33....

Thanks for any help in advanced!!

Viktor

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1999-03-13 16:06:04 Re: [SQL] Backend closes caused by query on a view?!
Previous Message Karl Denninger 1999-03-12 23:56:55 Re: [SQL] So what happens at 2GB?