Re: PROPOSAL - User's exception in PL/pgSQL - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: PROPOSAL - User's exception in PL/pgSQL
Date
Msg-id Pine.LNX.4.44.0506162059270.13602-100000@kix.fsv.cvut.cz
Whole thread Raw
In response to Re: PROPOSAL - User's exception in PL/pgSQL  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
On Thu, 16 Jun 2005, Josh Berkus wrote:

> Pavel,
> 
> >  o User can specify SQLSTATE only from class 'U1'
> >  o Default values for SQLSTATE usr excpt are from class 'U0'
> >  o Every exception's variable has unique SQLSTATE
> >  o User's exception or system's exception can be raised only with
> >    level EXCEPTION
> >
> > Any comments, notes?
> 
> Looks great to me, pending a code examination.   Will it also be possible to 
> query the SQLSTATE/ERRSTRING  inside the EXCEPTION clause?   i.e.
> 
> WHEN OTHERS THEN
>     RAISE NOTICE '%',sqlstate;
>     ROLLBACK;

yes, ofcourse. CVS can it now

> 
> That's something missing from 8.0 exception handling that makes it hard to 
> improve SPs with better error messages.
> 
> 



pgsql-hackers by date:

Previous
From: "Jonah H. Harris"
Date:
Subject: Re: Proposal - Continue stmt for PL/pgSQL
Next
From: Pavel Stehule
Date:
Subject: Re: Proposal - Continue stmt for PL/pgSQL