Re: existing row not found by SELECT ... WHERE CTID = ? - Mailing list pgsql-general

From Tom Lane
Subject Re: existing row not found by SELECT ... WHERE CTID = ?
Date
Msg-id 1544722.1653403631@sss.pgh.pa.us
Whole thread Raw
In response to existing row not found by SELECT ... WHERE CTID = ?  (Matthias Apitz <guru@unixarea.de>)
Responses Re: existing row not found by SELECT ... WHERE CTID = ?
List pgsql-general
Matthias Apitz <guru@unixarea.de> writes:
> We have a C-written program, written in ESQL/C, of our LMS where the logic
> crawls with FETCH through a hit list and does UPDATE on some rows which
> match certain condition. This works fine for thousands of rows every night,
> but magically sometimes it fails.

Maybe something else already updated the row since the cursor was opened?
That would change its CTID.

            regards, tom lane



pgsql-general by date:

Previous
From: Matthias Apitz
Date:
Subject: existing row not found by SELECT ... WHERE CTID = ?
Next
From: Adrian Klaver
Date:
Subject: Re: Can I start Update row in After Insert trigger function?