Bug Report

Поиск
Список
Период
Сортировка
От Markus Wiederkehr
Тема Bug Report
Дата
Msg-id 199911161355.OAA05538@fstgss05.tu-graz.ac.at
обсуждение исходный текст
Список pgsql-ports
Hello!

I've found a small bug (??) in PostgreSQL 6.5.3:

[PostgreSQL 6.5.3 on i686-pc-linux-gnu, compiled by gcc egcs-2.91.66]

SELECT SUM(1) FROM <table> WHERE <false-condition>;

I wanted to use this query to count the number of rows in a table that meet
the specified condition. Postgres crashes, if the number of rows is zero.

> table=> SELECT SUM(1) FROM nodes WHERE node_id = 172;
> 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.

--
Markus Wiederkehr
mailto:wmax@sbox.tu-graz.ac.at

В списке pgsql-ports по дате отправления:

Предыдущее
От: Goda Attila
Дата:
Сообщение: NT Socket problem
Следующее
От: Jeff MacDonald
Дата:
Сообщение: MIPS