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

From: "Sameer Mahajan" <sameer_mahajan(at)symantec(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4568: sporadic error doing COUNT(*) on empty table
Date: 2008-12-08 13:04:24
Message-ID: 200812081304.mB8D4OAY074066@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 4568
Logged by: Sameer Mahajan
Email address: sameer_mahajan(at)symantec(dot)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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Marc Schablewski 2008-12-08 17:14:14 Re: BUG #4565: nextval not updated during wal replication, leading to pk violations
Previous Message Obe, Regina 2008-12-08 07:51:09 Re: BUG #4567: Clustering on GIST INDEX clobbers records in table intermittently