Re: proposal: PL/Pythonu - function ereport

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: PL/Pythonu - function ereport
Date: 2015-10-09 13:22:01
Message-ID: 5617BF79.30203@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2015-10-09 13:52:19 Re: [RFC] overflow checks optimized away
Previous Message Jeevan Chalke 2015-10-09 12:48:52 Re: Foreign join pushdown vs EvalPlanQual