<cyw@xxxxxxx> writes: > I declare a cursor as below: > DECLARE > links_cur SCROLL CURSOR IS SELECT * FROM road; > and get this error: > CONTEXT: invalid type name "SCROLL CURSOR IS SELECT * FROM road" What PG version? IIRC plpgsql didn't allow the SCROLL modifier there before 8.3. regards, tom lane