Message line in RAISE Operation XXXX must be constant - expression is not allowed there. It looks like a format string in printf types.
RAISE NOTICE 'my table has name %', tablename;
The second problem should be "CONVERT", which is not supported in Pg - use CAST instead or nothing, any parameter of the RAISE operator is automatically converted to text.
source
share