Stuart Robinson <stuart(at)zapata(dot)org> writes:> Why doesn't it find the cursor?
Do you have a begin/end block wrapped around this? Cursors only livetill the end of the current transaction ...
regards, tom lane