pgsql raise debug notice exception