pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Bitmead <chris.bitmead@bigfoot.com>
To: pgsql-sql@hub.org
Subject: Re: [SQL] Slashdot Query
Date: Sun, 06 Jun 1999 20:59:12 +1000
Message-ID: <375A5480.B45FEEB3@bigfoot.com> (raw)
References: <16847.928506113@sss.pgh.pa.us>

Tom Lane wrote:
> You might consider using GROUP BY rather than DISTINCT if you want
> to order the results in a particular way, say
>         SELECT oid, title, image ...
>                 GROUP BY oid, title, image ORDER BY min(datetime)

I tried the following query and it crashed the backend. (CVS of a couple
of days ago).

SELECT category.oid, category.title, category.image FROM story,
category* WHERE story.category = category.oid AND story.approved GROUP
BY category.oid, category.title, category.image ORDER BY min(datetime);
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.


-- 
Chris Bitmead
http://www.bigfoot.com/~chris.bitmead
mailto:chris.bitmead@bigfoot.com



view thread (7+ messages)  latest in thread

Message-ID: <375A5480.B45FEEB3@bigfoot.com>
Permalink:  ../375A5480.B45FEEB3@bigfoot.com/
Also on:    postgresql.org/message-id/375A5480.B45FEEB3@bigfoot.com

 · 

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: chris.bitmead@bigfoot.com, pgsql-sql@hub.org
  Subject: Re: [SQL] Slashdot Query
  In-Reply-To: <375A5480.B45FEEB3@bigfoot.com>
  References: <16847.928506113@sss.pgh.pa.us> <375A5480.B45FEEB3@bigfoot.com>

* 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