"Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr> writes:
> I know that I can catch notice with error message, but this message often
> looks like this:
> Error near ''''
> If I have function with more than one line, message like this does not help.
Try 7.2 beta ... it reports the line number for plpgsql syntax errors.
regards, tom lane