I'm trying to understand expections in postgresql. Maybe my problem is easy but not for me. Can someone tell me what is wrong with this query ? ERROR: syntax error at or near "EXCEPTION"
BEGIN;
select 1;
EXCEPTION
WHEN others THEN
RAISE INFO 'Caught';
END;
;) afterBEGIN.DOblock?