proposal: PL/Pythonu - function ereport

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема proposal: PL/Pythonu - function ereport
Дата
Msg-id CAFj8pRCHfN-JXktA47Gnj6epKC05eGES9tBK-z3PoMp1FMKHmw@mail.gmail.com
обсуждение исходный текст
Ответы Re: proposal: PL/Pythonu - function ereport
Re: proposal: PL/Pythonu - function ereport
Список pgsql-hackers
Hi

We cannot to raise PostgreSQL exception with setting all possible fields. I propose new function

plpy.ereport(level, [ message [, detail [, hint [, sqlstate, ... ]]]])

The implementation will be based on keyword parameters, so only required parameters should be used.

Examples:

plpy.ereport(plpy.NOTICE, 'some message', 'some detai')
plpy.ereport(plpy.ERROR, 'some message', sqlstate = 'zx243');

Comments, notices, objections?

Regards

Pavel

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