Re: [HACKERS] POC: Sharing record typmods between backends - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: [HACKERS] POC: Sharing record typmods between backends
Date
Msg-id CAEepm=37RvJC3U1v5S6Pj+Xb2sE5DxL_+YSvoHzgP1btC8Hs5w@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] POC: Sharing record typmods between backends  (Thomas Munro <thomas.munro@enterprisedb.com>)
List pgsql-hackers
On Wed, Aug 23, 2017 at 11:58 PM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> On Wed, Aug 23, 2017 at 5:46 PM, Andres Freund <andres@anarazel.de> wrote:
>> - Afaict GetSessionDsmHandle() uses the current rather than
>>   TopMemoryContext. Try running the regression tests under
>>   force_parallel_mode - crashes immediately for me without fixing that.
>
> Gah, right.  Fixed.

That version missed an early return case where dsm_create failed.
Here's a version that restores the caller's memory context in that
case too.

-- 
Thomas Munro
http://www.enterprisedb.com

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [HACKERS] POC: Sharing record typmods between backends
Next
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] proposal: psql command \graw