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 1jVzzI-0003L3-2K for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2020 16:00:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jVzzG-0006vc-44 for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2020 16:00:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVzzF-0006vF-S3 for pgsql-general@lists.postgresql.org; Tue, 05 May 2020 16:00:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVzzD-0007vR-OX for pgsql-general@lists.postgresql.org; Tue, 05 May 2020 16:00:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 045FxRiv004102; Tue, 5 May 2020 11:59:27 -0400 From: Tom Lane To: Peter cc: Thomas Munro , Adrian Klaver , "pgsql-generallists.postgresql.org" Subject: Re: 12.2: Howto check memory-leak in worker? In-reply-to: <20200505104507.GA32455@gate.oper.dinoex.org> References: <20200504115649.GA77072@gate.oper.dinoex.org> <639a25fc-772e-1694-b249-12d686192a85@aklaver.com> <20200504220132.GA67933@gate.oper.dinoex.org> <20200505104507.GA32455@gate.oper.dinoex.org> Comments: In-reply-to Peter message dated "Tue, 05 May 2020 12:45:07 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4100.1588694367.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 05 May 2020 11:59:27 -0400 Message-ID: <4101.1588694367@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter writes: > On Tue, May 05, 2020 at 10:57:04AM +1200, Thomas Munro wrote: > ! * Once a minute, verify that postmaster.pid hasn't been remov= ed or > ! * overwritten. If it has, we force a shutdown. > It is really hard to comment on this in a way that might not be > considered offensive, so lets put it that way: You all have seen > the Apollo-13 movie, so You know that a need to power-down as much > as possible may appear en-route, and in a situation where you have > lots of other issues, so what you need the least is things like > this getting in your way. Well, the choice we face is preventing somebody's disk from spinning down, versus preventing somebody else from completely corrupting their database. From where I sit that's not a difficult choice, nor one that I feel a need to let users second-guess. > Now concerning the memory leak: > That one was introduced with the work done on the GSSAPI encryption; > it goes away when setting 'hostnogssenc' in pg_hba. Oooh ... it looks like some of the encryption code paths have neglected to call gss_release_buffer. Will fix, thanks for the report! regards, tom lane