"Lothar Bongartz" <lotharbongartz(at)hotmail(dot)com> writes:
> A "NOT FOUND" condition in a stored function throws a "GetData to Procedure
> return failed." error, which cannot be trapped by the EXCEPTION handling.
There is no such error message text anywhere in Postgres, and you
haven't given enough context to let anyone guess what the complaint
actually is about. Please show a *complete* example not a one-line
extract.
The expected behavior of the command you show is to set the INTO
variable(s) to NULL if there is no matching row. That isn't an
error though.
regards, tom lane