Re: pgsql: Add PL/pgSQL SQLSTATE and SQLERRM support - Mailing list pgsql-committers

From Pavel Stehule
Subject Re: pgsql: Add PL/pgSQL SQLSTATE and SQLERRM support
Date
Msg-id Pine.LNX.4.44.0506021701520.4622-100000@kix.fsv.cvut.cz
Whole thread Raw
In response to Re: pgsql: Add PL/pgSQL SQLSTATE and SQLERRM support  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
On Thu, 2 Jun 2005, Tom Lane wrote:

> Pavel Stehule <stehule@kix.fsv.cvut.cz> writes:
> > I din't find easy way how append variable only when block contains
> > EXCEPTION part. I wilcome any advice
>
> I was envisioning an action in the beginning of the EXCEPTION clause,
> viz
>
> exception_sect  :
>                     { $$ = NIL; }
>                 | K_EXCEPTION
>                     { push vars into namespace here }
>                   proc_exceptions
>                     { $$ = $2; }
>                 ;

True. It's can work. I'll change it.

Pavel Stehule


pgsql-committers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: pgsql: Add PL/pgSQL SQLSTATE and SQLERRM support
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Nab some low-hanging fruit: replace the planner's base_rel_list