Re: pgsql: Fix memory leak on DSM slot exhaustion. - Mailing list pgsql-committers

From Michael Paquier
Subject Re: pgsql: Fix memory leak on DSM slot exhaustion.
Date
Msg-id 20200201093653.GB4133@paquier.xyz
Whole thread Raw
In response to pgsql: Fix memory leak on DSM slot exhaustion.  (Thomas Munro <tmunro@postgresql.org>)
Responses Re: pgsql: Fix memory leak on DSM slot exhaustion.  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-committers
Hi Thomas,

On Sat, Feb 01, 2020 at 02:33:42AM +0000, Thomas Munro wrote:
> Fix memory leak on DSM slot exhaustion.
>
> If we attempt to create a DSM segment when no slots are available,
> we should return the memory to the operating system.  Previously
> we did that if the DSM_CREATE_NULL_IF_MAXSEGMENTS flag was
> passed in, but we didn't do it if an error was raised.  Repair.
>
> Back-patch to 9.4, where DSM segments arrived.

It seems to me that you have forgotten REL_11_STABLE in the set of
branches to fix.

Thanks,
--
Michael

Attachment

pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Prevent running pg_basebackup as root
Next
From: Thomas Munro
Date:
Subject: pgsql: Fix memory leak on DSM slot exhaustion.