PL/PGSQL Errors and Messages
Types:
- DEBUG
- LOG
- NOTICE
- INFO
- WARNIN
- EXCEPTION
Syntax:
RAISE level
format;
Example:
DO
$$
BEGIN
RAISE
INFO 'information message %', now() ;
RAISE
LOG 'log message %', now();
RAISE
DEBUG 'debug message %', now();
RAISE
WARNING 'warning message %', now();
RAISE
NOTICE 'notice message %', now();
END
$$;
Comments
Post a Comment