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.
-Neil