Re: proposal: PL/Pythonu - function ereport

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: proposal: PL/Pythonu - function ereport
Дата
Msg-id CAFj8pRB4=hhU4zkuMKR0Ku0mKC1eXVoXgr3RV=EP+BVQUZf2tg@mail.gmail.com
обсуждение исходный текст
Ответ на proposal: PL/Pythonu - function ereport  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers


2015-10-08 12:11 GMT+02:00 Pavel Stehule <pavel.stehule@gmail.com>:
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');

patch attached

regards

Pavel
 

Comments, notices, objections?

Regards

Pavel

Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: More work on SortSupport for text - strcoll() and strxfrm() caching
Следующее
От: Jeremy Harris
Дата:
Сообщение: Re: Getting sorted data from foreign server