Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNeoP-0002Jh-Vh for pgsql-bugs@arkaria.postgresql.org; Sat, 20 Mar 2021 16:50:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lNeoJ-0008P3-6U for pgsql-bugs@arkaria.postgresql.org; Sat, 20 Mar 2021 16:50:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNeoJ-0008Oq-0S for pgsql-bugs@lists.postgresql.org; Sat, 20 Mar 2021 16:50:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNeoH-0000wS-1o for pgsql-bugs@lists.postgresql.org; Sat, 20 Mar 2021 16:50:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12KGoR6u227070; Sat, 20 Mar 2021 12:50:27 -0400 From: Tom Lane To: Andres Freund cc: Stephen Frost , Jelte Fennema , Michael Paquier , duspensky@ya.ru, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16160: Minor memory leak in case of starting postgres server with SSL encryption In-reply-to: <20210320000732.zaq227u5spnhwytr@alap3.anarazel.de> References: <16160-18367e56e9a28264@postgresql.org> <20191213063915.GE1942@paquier.xyz> <20191214092456.GB70616@paquier.xyz> <20210316184455.GB20766@tamriel.snowman.net> <20210320000732.zaq227u5spnhwytr@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 19 Mar 2021 17:07:32 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <227068.1616259027.1@sss.pgh.pa.us> Date: Sat, 20 Mar 2021 12:50:27 -0400 Message-ID: <227069.1616259027@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2021-03-16 14:44:55 -0400, Stephen Frost wrote: >> OOMs errors should be gracefully handled and PG should continue to >> function. Was that not the case..? > Depends on what you mean with graceful. Unless you restart the database > you'll eventually not be able to do anything anymore, since even the > smallest memory allocation will fail? Yeah, a leak in the postmaster is not gonna end well. I went ahead and back-patched e0e569e1d. While looking at that, I noticed that the load_dh_file subroutine was also a few DH_frees shy of a load, so I fixed that too. regards, tom lane