pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Richards <miker@scifair.acadiau.ca>
Cc: sql@postgreSQL.org
Cc: hackers@postgreSQL.org
Subject: Re: [HACKERS] Counting bool flags in a complex query
Date: Thu, 15 Jul 1999 11:07:10 -0400
Message-ID: <6419.932051230@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSF.4.10.9907141332210.38362-100000@scifair.acadiau.ca>

Michael Richards <miker@scifair.acadiau.ca> writes:
> I'm not sure this is correct, but I think I see a bug of some sort...

> SELECT folderid,foldername,count(*),sum(contentlength),sum(case when
> flagnew = TRUE then 1 else 0 end) FROM usermail,folders WHERE
> usermail.loginid='michael' and folders.loginid=usermail.loginid AND
> usermail.folder = folders.folderid GROUP BY folderid,foldername UNION
> SELECT folderid,foldername,0,0,0 FROM folders WHERE loginid='michael' AND
> NOT EXISTS (SELECT folder FROM usermail WHERE loginid='michael' AND
> folder=folderid) ;
> ERROR:  _finalize_primnode: can't handle node 723

I committed a fix last night; it will be in 6.5.1.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <6419.932051230@sss.pgh.pa.us>
Permalink:  ../6419.932051230@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6419.932051230@sss.pgh.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: tgl@sss.pgh.pa.us, miker@scifair.acadiau.ca, sql@postgreSQL.org, hackers@postgreSQL.org
  Subject: Re: [HACKERS] Counting bool flags in a complex query
  In-Reply-To: <6419.932051230@sss.pgh.pa.us>
  References: <Pine.BSF.4.10.9907141332210.38362-100000@scifair.acadiau.ca> <6419.932051230@sss.pgh.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