Raymond <support(at)bigriverinfotech(dot)com> writes:
> The compiler complains about the concat operator in the following code 
> fragment:
> RAISE EXCEPTION
> 	''SELECT DISTINCT "t1"."usesysid" '' ||
> 		''INTO userID '' ||
RAISE EXCEPTION doesn't support expressions in its arguments, IIRC.
The format has to be a simple string literal, and anything to be plugged
into it has to be a variable reference.
So, do the concatenation beforehand.
			regards, tom lane