"Bath, David" <dave(dot)bath(at)unix(dot)net> writes:
> In PL/SQL I can write some like the following:
> fetch cursorblah into blurble;
> if cursorname%NOTFOUND .....
See the FOUND variable:
http://www.postgresql.org/docs/8.0/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS
regards, tom lane