Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ixpD4-0006rJ-MC for pgsql-committers@arkaria.postgresql.org; Sat, 01 Feb 2020 09:37:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ixpD3-0000zI-HP for pgsql-committers@arkaria.postgresql.org; Sat, 01 Feb 2020 09:37:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ixpD3-0000zB-0W for pgsql-committers@lists.postgresql.org; Sat, 01 Feb 2020 09:37:01 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixpD0-0004Wa-Rz for pgsql-committers@lists.postgresql.org; Sat, 01 Feb 2020 09:36:59 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 8E59E4C7; Sat, 1 Feb 2020 04:36:57 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 01 Feb 2020 04:36:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=eIZqjb1lyQrgLF5TehyiuUy1kx/ MqQFJ2cePPnFq2kM=; b=WfFq0XcL4hvzxAzv5fsSwNquHxHuF4UnZHl3yBy1chJ nE4aKKzyX0mJJph4aOTTRalfWsmZyZhqHEW51H8GTsZNRvoKgxg+yD5QIacZOnRC pnEtcXqx9nd4Ajjs928yeMkirhtb1EP4yQ6PkkFBJT/vCPVHbyb5b2+KwhyVbjfl gAGOR9YjXQXihAakykvFpZ6JT6fFK/y93s6allDWIT/HEPKcqMzIbmdCCZ5a0eES IfQIYnDOpmxmx+rsRh4s+otp4Xfi6GeH6mJwdDdH86ltcL9Q/SVFuUU+9RI2AIyy DYMu/T9r4f+eqEIpVDDdbII1fPEcRlxnnIDuyIt6sKA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=eIZqjb 1lyQrgLF5TehyiuUy1kx/MqQFJ2cePPnFq2kM=; b=f2hyZKn5NtvbQ+Bb28GPHi XMHn/P3e061Z4NPXEMJFIUeIHXQq3d18kF6yplbpf4UQ4nb+XTH8MUNnzEWi9plY 0WBaxK9Fxmb/HDrDhbQzdL85+WcV0qJ7RLtJn4Q7VnlSTYxBA5aJlXcrqgiL2aNV zbXo1h9/dR+OfaN8NzSrMjh0UiPOsbJRoQGF/FkJUFOWr1RmlUAVxjmtdsncFFqa Wwcw0Ay4f1WKrxXPFjwIIIgWaDJozrt5At9LNTY5BYUwBBhiNLd1avuaim6AT8pa xuaBnanLQWf9mqopLlz1wIY8T2bp3U/Z17u8/MlcqX/loCwNhMPSrTZZnqZjBvXg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgedvgddtgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhs thgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesph grqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 1D054328005D; Sat, 1 Feb 2020 04:36:55 -0500 (EST) Date: Sat, 1 Feb 2020 18:36:53 +0900 From: Michael Paquier To: Thomas Munro Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix memory leak on DSM slot exhaustion. Message-ID: <20200201093653.GB4133@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="f2QGlHpHGjS2mn6Y" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Thomas, On Sat, Feb 01, 2020 at 02:33:42AM +0000, Thomas Munro wrote: > Fix memory leak on DSM slot exhaustion. >=20 > 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. >=20 > 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 --f2QGlHpHGjS2mn6Y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl41RrUACgkQnvQgOdby QH34cg/9GLRs0+GMDXfPXGlx7pmJha4waMMcbPCRgloY28p+aouFatMuWO8is2xu VTOoC40GVKTVYRC1ICiwPQTpVnU2aAKER/VDY/sOdkuuWGbvnfdNCRX/AtrnhieC AJSu46oU+J7TjFlzFFXg375qQaIngo5d5I2z0v+xpFnHuk5nRrntRsjtnxQezjyu yPqnpiC/LxmQPuaiCBco7s9loLzAih8iRkOxWlW4PvFGgvoRZu1dV2n4GyV0EQc7 LHSxdR55gr3Nmcq38iMwVozDKzdPX05g2IuTqzBFe6eXt2Xs6MZYiPToy4LxHJIv Lj6Wv6WBzwseH+7YCMBWkC9QIROqH95eCSyhqPvOP9Psqsi5ExvH/Hr3e5L1flfg yXf+CxE78i09gBY1y/EpQ8MLP0eK0iPFMLIMH2qRwqi9AJaoVBc735yybUU7F+so +T3mpTCGgV2qREn58WY2s+9iuXHykHdeZ5aDguv1GyXKnWQ5gBZYVBOsU+2UWyAD WKMpzMmJ9SeJ+/SriRkmbO2j330/C5XJyESDBcmm5Al5HfMwECftz3qgRje8NjGl KTcfvwzYz3rWQInWkiUMMGfFTJEFmyr76AJtmcfUEJpYQdVGxXnaZ71EMO6e+Oqq QXS/R8eqZ4k5MMTfEecDBzxGSOplIpdQZobEUYxOpBD8yhjJxNw= =leAb -----END PGP SIGNATURE----- --f2QGlHpHGjS2mn6Y--