Re: pgsql: Add PL/pgSQL SQLSTATE and SQLERRM support

From: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, <pgsql-committers(at)postgresql(dot)org>
Subject: Re: pgsql: Add PL/pgSQL SQLSTATE and SQLERRM support
Date: 2005-05-26 07:19:51
Message-ID: Pine.LNX.4.44.0505260918020.29321-100000@kix.fsv.cvut.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-patches

On Thu, 26 May 2005, Neil Conway wrote:

> Tom Lane wrote:
> > Alternatively we could make them local to any block that contains an
> > EXCEPTION clause, which would fix point 3 and also go a long way towards
> > addressing the unnecessary-overhead gripe. However that would mean that
> > an attempt to reference them from outside an exception handler would
> > probably fail outright, rather than deliver either NULLs or
> > 00000/"Successful completion".
>
> This behavior sounds fine to me.
>
true, there is not any reason use this variables outside exception
handler.

Pavel

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-05-26 14:10:50 Re: pgsql: Add PL/pgSQL SQLSTATE and SQLERRM support which sets these values
Previous Message Peter Eisentraut 2005-05-26 06:38:55 Re: pgsql: Add PL/pgSQL SQLSTATE and SQLERRM support which sets these values

Browse pgsql-patches by date

  From Date Subject
Next Message ITAGAKI Takahiro 2005-05-26 08:04:01 O_DIRECT for WAL writes
Previous Message Pavel Stehule 2005-05-26 07:16:55 Re: Implementation of SQLSTATE and SQLERRM variables