Re: pgsql: PL/Python: Fix potential NULL pointer dereference - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql: PL/Python: Fix potential NULL pointer dereference
Date
Msg-id de6d3b84-287a-b943-b5cc-6f5825657c6b@2ndquadrant.com
Whole thread Raw
In response to Re: pgsql: PL/Python: Fix potential NULL pointer dereference  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: pgsql: PL/Python: Fix potential NULL pointer dereference  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
On 11/28/17 13:35, Peter Eisentraut wrote:
> On 11/28/17 11:35, Tom Lane wrote:
>> Peter Eisentraut <peter_e@gmx.net> writes:
>>> PL/Python: Fix potential NULL pointer dereference
>>
>> I do not think it's correct to just "return" out of the middle
>> of a PG_TRY block --- doesn't that result in failing to pop the
>> PG_exception_stack and error_context_stack?
> 
> OK, I'll revert and rethink.

How about this instead?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Add some regression tests that exercise hash join code.
Next
From: Robert Haas
Date:
Subject: pgsql: Fix accumulation of parallel worker instrumentation.