Re: PQgetvalue: ERROR! tuple number 0 is out of range 0..-1 - Mailing list pgsql-hackers

From Jim Mercer
Subject Re: PQgetvalue: ERROR! tuple number 0 is out of range 0..-1
Date
Msg-id 20010607083947.E10741@reptiles.org
Whole thread Raw
In response to PQgetvalue: ERROR! tuple number 0 is out of range 0..-1  (mlw <markw@mohawksoft.com>)
List pgsql-hackers
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. ]


pgsql-hackers by date:

Previous
From: mlw
Date:
Subject: PQgetvalue: ERROR! tuple number 0 is out of range 0..-1
Next
From: Tom Ivar Helbekkmo
Date:
Subject: Re: AW: AW: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. S tand ards