pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Jelte Fennema <postgres@jeltef.nl>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: duspensky@ya.ru
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16160: Minor memory leak in case of starting postgres server with SSL encryption
Date: Sat, 20 Mar 2021 12:50:27 -0400
Message-ID: <227069.1616259027@sss.pgh.pa.us> (raw)
In-Reply-To: <20210320000732.zaq227u5spnhwytr@alap3.anarazel.de>
References: <16160-18367e56e9a28264@postgresql.org>
	<20191213063915.GE1942@paquier.xyz>
	<20191214092456.GB70616@paquier.xyz>
	<CAGECzQTucR20CLwb6mw_JLdVST8GqYNqYr1OmAnNS2Byg8r+dg@mail.gmail.com>
	<20210316184455.GB20766@tamriel.snowman.net>
	<20210320000732.zaq227u5spnhwytr@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> 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





view thread (16+ messages)  latest in thread

Message-ID: <227069.1616259027@sss.pgh.pa.us>
Permalink:  ../227069.1616259027@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/227069.1616259027@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, sfrost@snowman.net, postgres@jeltef.nl, michael@paquier.xyz, 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: <227069.1616259027@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox