Re: [HACKERS] SQL procedures

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] SQL procedures
Дата
Msg-id f650fbc3-7179-9d80-9b5b-e64f3bb78e38@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [HACKERS] SQL procedures  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On 11/8/17 09:33, Pavel Stehule wrote:
>     We can create auto session variable STATUS. This variable can be 0
>     if procedure was returned without explicit RETURN value. Or it can
>     hold different value specified by RETURN expr.
> 
>     This value can be read by GET DIAGNOSTICS xxx = STATUS
> 
>     or some similar.
> 
> The motivation is allow some mechanism cheaper than our exceptions.

I suppose this could be a separately discussed feature.  We'd also want
to consider various things that PL/pgSQL pretends to be compatible with.

One of the main motivations for procedures is to do more complex and
expensive things including transaction control.  So saving exception
overhead is not really on the priority list there.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] SQL procedures
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] SQL procedures