BUG #4568: sporadic error doing COUNT(*) on empty table

Поиск
Список
Период
Сортировка
От Sameer Mahajan
Тема BUG #4568: sporadic error doing COUNT(*) on empty table
Дата
Msg-id 200812081304.mB8D4OAY074066@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #4568: sporadic error doing COUNT(*) on empty table  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      4568
Logged by:          Sameer Mahajan
Email address:      sameer_mahajan@symantec.com
PostgreSQL version: 8.1.4-1.3
Operating system:   Suse Linux
Description:        sporadic error doing COUNT(*) on empty table
Details:

While performing COUNT(*) on an empty table via libpq APIs I am spradically
getting an error.

the error is returning 7 for PQresultStatus(res)

and 0 for PQntuples(res) where res is the PGresult returned by this count(*)
query on the empty table.

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

Предыдущее
От: "Obe, Regina"
Дата:
Сообщение: Re: BUG #4567: Clustering on GIST INDEX clobbers records in table intermittently
Следующее
От: Marc Schablewski
Дата:
Сообщение: Re: BUG #4565: nextval not updated during wal replication, leading to pk violations