pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: davidrugge@mindspring.com
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] postmaster dies on complicated views
Date: Thu, 17 Sep 1998 22:58:51 -0400 (EDT)
Message-ID: <199809180258.WAA19604@candle.pha.pa.us> (raw)
In-Reply-To: <l03102800b22770a89d74@[207.69.248.120]>

> 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@candle.pha.pa.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.        |



view thread (2+ messages)

Message-ID: <199809180258.WAA19604@candle.pha.pa.us>
Permalink:  ../199809180258.WAA19604@candle.pha.pa.us/
Also on:    postgresql.org/message-id/199809180258.WAA19604@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: maillist@candle.pha.pa.us, davidrugge@mindspring.com, pgsql-sql@hub.org
  Subject: Re: [SQL] postmaster dies on complicated views
  In-Reply-To: <199809180258.WAA19604@candle.pha.pa.us>
  References: <l03102800b22770a89d74@[207.69.248.120]> <199809180258.WAA19604@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox