Re: [HACKERS] error on HAVING clause - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] error on HAVING clause
Date
Msg-id 199804091540.LAA14641@candle.pha.pa.us
Whole thread Raw
In response to error on HAVING clause  ("Jose' Soares Da Silva" <sferac@proxy.bazzanese.com>)
Responses Re: [HACKERS] error on HAVING clause
Re: [HACKERS] error on HAVING clause
List pgsql-hackers
> Please enter a FULL description of your problem:
> ------------------------------------------------
>
> COUNT(*) doesn't work with HAVING
>
>
> Please describe a way to repeat the problem.   Please try to provide a
> concise reproducible example, if at all possible:
>
> ----------------------------------------------------------------------
>
> SELECT PNO
> FROM SP
> GROUP BY PNO
> HAVING COUNT(PNO) > 1;
>
> pno
> -----
> P1
> P2
> P4
> P5
> (4 rows)
>
>
> SELECT PNO
> FROM SP
> GROUP BY PNO
> HAVING COUNT(*) > 1;
>
> 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.

Appreciate your report.  Hopefully we can fix it by the 6.3.2 final
release.  If not, we will have to remove the feature until 6.4.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: "Jose' Soares Da Silva"
Date:
Subject: error on HAVING clause
Next
From: dg@illustra.com (David Gould)
Date:
Subject: Re: [HACKERS] Everything leaks; How it mm suppose to work?