Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tINfO-00Dyz4-N3 for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Dec 2024 07:49:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tINfK-007p1p-OO for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Dec 2024 07:49:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tINfJ-007p1X-JG for pgsql-hackers@lists.postgresql.org; Tue, 03 Dec 2024 07:49:51 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tINfH-000nLp-0U for pgsql-hackers@lists.postgresql.org; Tue, 03 Dec 2024 07:49:50 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id C40B1138024F; Tue, 3 Dec 2024 02:49:44 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Tue, 03 Dec 2024 02:49:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1733212184; x=1733298584; bh=4 7v5oz97OTKtjiyHi6QYzBNM2z+BR0zAwnI/o9qP/Vs=; b=wfxm3BJBoIPPWGf6g UVIMJ6TSRCqeoul9soFgyxCpoadkfwmAe4DdMx+SWFM1YlJKZiECWg+hrst1rlpH 5BRyncVX0DQb3wPP7uuk8PnchUQSI7bG/NR9QoK71Fyzkczq4JfcU4zdnMGbzd2S F2XtkhyFyP21kA8Yjzwl3JMJ9QcHjzYV6eK2f+AlVTffJdccUj+ExUvGq3yFQSkJ fwyII2HNTXmt4Gm4BE2WIX0tnWyVv22Fk3f6Mh/rFU7jtqWCiHtvTjYDJLyWGfTC oHcc+sAK/D1o8I9vz1B7T7lTxjT0ehwb0iwti4lmG3Tc3+7A2ixNe/XHvbujio8C CcuAw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddriedugdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecu hfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfej jefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtg hpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghmihhtrdhkrghp ihhlrgduieesghhmrghilhdrtghomhdprhgtphhtthhopehsmhhithhhphgsvddvhedtse hgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishht shdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepmhhitghhrggvlhesphgrqh huihgvrhdrgiihii X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Dec 2024 02:49:43 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1733212181; bh=I/6+LjLd0bSnuEGCfzdkm4Qa8VOIlpoYeuTiwurJvfo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=E+64zijckUQ60MX/pSkQnhMQpdRuwIIZkuTwxY5ekoFkB32ceHzHH4xEC8uA9YkPz sdWytXqnJstHjtthtodK+PZk8v3gScSUIp47U5Nbrw5K/pyvtP/TO5He7LV6bX5p+Q 0vS3BZM6X/trYo+MabHOc6dMLUrhe/0nmlnXDEKkzjB6zFy99VHjPnMH7Lzo26rbEL z1iVuwQlqqNKxE4uKz4wq3tc5B8YYo00kxV0NU6wXG7Z3KT+gJyx3LeDkdrzXjjO5t FVnu2pJjlIPg55yAkgL7CVZFP6uQ8lZyWOje/9MRry1I8Axt3eF022ZWGXDj/OA6Yq 2p7YPYpVwp/tA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 52F4595; Tue, 3 Dec 2024 08:49:41 +0100 (CET) Date: Tue, 3 Dec 2024 08:49:41 +0100 From: Alvaro Herrera To: Peter Smith Cc: Michael Paquier , Amit Kapila , Postgres hackers Subject: Re: Memory leak in WAL sender with pgoutput (v10~) Message-ID: <202412030749.yqxn2kbnvqzq@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Dec-03, Peter Smith wrote: > Perhaps the patch can use foreach_ptr macro instead of foreach? That cannot be backpatched, though. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end." (2nd Commandment for C programmers)