2011/10/15 Tom Lane <[email protected]>:
> Pavel Stehule <[email protected]> writes:
>> 2011/10/15 Robert Haas <[email protected]>:
>>> On Sat, Oct 15, 2011 at 12:24 AM, Pavel Stehule <[email protected]>
>>> wrote:
>>>> I have no problem with this. A context can be false for info and true
>>>> for other in default. Please, use a different identifier than
>>>> "context", that can be use for reading context in future - maybe
>>>> "attach_context" or some similar.
>
>>> error_context?
>
>> what about show_context, hide_context, hold_context, use_context ??
>
> I still think it should be CONTEXT, period. All the other options to
> RAISE are named directly after the message lines they control; why
> should this one be different?
I had a idea to set CONTEXT from RAISE statement - for forwarding data
from handled exception
some like
BEGIN
...
EXCEPTION WHEN ...
GET DIAGNOSTICS _context = PG_EXCEPTION_CONTEXT;
REISE USING context = _context;
END;
Regards
Pavel Stehule
>
> regards, tom lane
>
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers