I\'m trying to run this in PostgreSQL 9.2:
RAISE NOTICE \'hello, world!\';
And the server says:
Error : ERROR: syntax erro
Use an anonymous code block:
DO language plpgsql $$ BEGIN RAISE NOTICE 'hello, world!'; END $$;
Variables are referenced using %:
%
RAISE NOTICE '%', variable_name;