Re: proposal: PL/Pythonu - function ereport

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: proposal: PL/Pythonu - function ereport
Дата
Msg-id 5617BF79.30203@gmx.net
обсуждение исходный текст
Ответ на proposal: PL/Pythonu - function ereport  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: proposal: PL/Pythonu - function ereport  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: proposal: PL/Pythonu - function ereport  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On 10/8/15 6:11 AM, Pavel Stehule wrote:
> We cannot to raise PostgreSQL exception with setting all possible
> fields.

Such as?  If there are fields missing, let's add them.

> I propose new function
> 
> plpy.ereport(level, [ message [, detail [, hint [, sqlstate, ... ]]]])

That's not how Python works.  If you want to cause an error, you should
raise an exception.




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

Предыдущее
От: Jeevan Chalke
Дата:
Сообщение: Re: Foreign join pushdown vs EvalPlanQual
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [RFC] overflow checks optimized away