Matthias Apitz <guru@xxxxxxxxxxx> 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