"Dennis" <pg-user(at)calico-consulting(dot)com> writes:> I am wondering if I can use a cursor in a for loop.
Something like
LOOP FETCH ...; EXIT WHEN NOT found; ... END LOOP;
should do it.
regards, tom lane