From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | davidrugge(at)mindspring(dot)com (David Rugge) |
Cc: | pgsql-sql(at)hub(dot)org |
Subject: | Re: [SQL] postmaster dies on complicated views |
Date: | 1998-09-18 02:58:51 |
Message-ID: | 199809180258.WAA19604@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> I've had a strange problem with viewing through anything but a basic view.
> The view in question is defined as follows:
>
> create view currentinfo
> as
> select pub_id, type, sum(price*ytd_sales), avg(price), avg(ytd_sales)
> from titles
> group by pub_id, type;
>
> this is what happens when I do a select * from currentinfo:
>
> PQexec() -- Request was sent to backend, but backend closed the channel
> before responding.
> This probably means the backend terminated abnormally before or while
> processing the request.
>
>
> What does this message mean? Once I get this error, I have to quit and
> relaunch psql before any other queries are successful. I think the problem
> may be with the "sum(price*ytd_sales)" selection, since I tried another
> query with multiplication in the select clause and it died too.
Can't use aggregates in views. Sorry. On the TODO list.
--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
http://www.op.net/~candle | (610) 353-9879(w)
+ If your life is a hard drive, | (610) 853-3000(h)
+ Christ can be your backup. |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Davies | 1998-09-18 05:07:28 | PostgreSQL syntax question |
Previous Message | David Rugge | 1998-09-18 02:14:44 | postmaster dies on complicated views |