Thread: PQgetvalue: ERROR! tuple number 0 is out of range 0..-1

PQgetvalue: ERROR! tuple number 0 is out of range 0..-1

From
mlw
Date:
I get this a lot and it keeps me from backing up the database.

This database is still 7.0.3. Anyone knows what cases it and how to correct it,
because I can't dump to a new database.


Re: PQgetvalue: ERROR! tuple number 0 is out of range 0..-1

From
Jim Mercer
Date:
On Thu, Jun 07, 2001 at 08:36:48AM -0400, mlw wrote:
> I get this a lot and it keeps me from backing up the database.
> 
> This database is still 7.0.3. Anyone knows what cases it and how to correct
> it, because I can't dump to a new database.

is this coming from one of your applications?
"PQgetvalue: ERROR! tuple number 0 is out of range 0..-1"

if so, the it is possible that the application is doing a select, which
returns 0 rows.

and your application is attempting to access the value of a non-existant row.

-- 
[ Jim Mercer        jim@reptiles.org         +1 416 410-5633 ]
[ Now with more and longer words for your reading enjoyment. ]