Re: proposal: PL/Pythonu - function ereport - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: proposal: PL/Pythonu - function ereport
Date
Msg-id 5617BF79.30203@gmx.net
Whole thread Raw
In response to proposal: PL/Pythonu - function ereport  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal: PL/Pythonu - function ereport
Re: proposal: PL/Pythonu - function ereport
List 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 by date:

Previous
From: Jeevan Chalke
Date:
Subject: Re: Foreign join pushdown vs EvalPlanQual
Next
From: Bruce Momjian
Date:
Subject: Re: [RFC] overflow checks optimized away