Re: [HACKERS] error on HAVING clause

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] error on HAVING clause
Дата
Msg-id 199804131503.LAA17347@candle.pha.pa.us
обсуждение исходный текст
Список pgsql-bugs
> 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-bugs по дате отправления:

Следующее
От: Paul Slootman
Дата:
Сообщение: Bug#26778: postgresql-dev: postgresql/c.h typedefs Size as 'unsigned i nt', should be 'size_t'