Can we use RAISE NOTICE in postgres as equivalent of RAISERROR \'message to display\' WITH NOWAIT in SQL Server, or is there a better way
RAISE NOTICE
RAISERROR
WITH NOWAIT
RAISE NOTICE is part of PL/pgSQL so it's only legal in a function or an anonymous DO block. I guess you could make a function that raises the notice and call that.