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

Popular posts from this blog

PostgreSQL pg_pool-II Installation and Configuration

PostgreSQL Migration Using MTK

PostgreSQL Pages and Tuples