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.96) (envelope-from ) id 1vuvuL-00DThc-16 for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 17:09:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vuvtL-002QKp-0p for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 17:08:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vuvtK-002QKg-23 for pgsql-hackers@lists.postgresql.org; Tue, 24 Feb 2026 17:08:10 +0000 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vuvtH-00000000zKg-2iPE for pgsql-hackers@postgresql.org; Tue, 24 Feb 2026 17:08:09 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 88575EC0313; Tue, 24 Feb 2026 12:08:07 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Tue, 24 Feb 2026 12:08:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1771952887; x= 1772039287; bh=LT+afFPyVRHQkilvVOr6A1hwBvRUDZVv50sM7VRfVZc=; b=T HCHW5MasbsjSLy9gFQ6WZwRFgSsxiX0Y+oV4qaen0SYXveYGB39FiGu0AcgaYVAN PSSBkMctk5CPHM11NTBVbeQsXzr5h43HI73lPMjxDxtEVjJQv/5qO3a6sUWOND4W fLJ+8DP/D57YRRB7AUeaegpRRGkCda3fdk5Iv2zawsZs9bMmR5DM+ZbwkKU2QHVK jCDdmjf+Z6vFTXs961cuyNhiwHo9n8xdNNylGNI7beCypXFppOe30b5abB4E1S+P VExz+QJWfu/bah6x+Mpp+QabSISZALo18jrnsxtDZrlhIoWtEFeUNqs80wJgce0p kFW7Sft95OBS8hWJFe0YQ== 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=fm3; t=1771952887; x=1772039287; bh=L T+afFPyVRHQkilvVOr6A1hwBvRUDZVv50sM7VRfVZc=; b=Dyk3sWnUNVR37cr9+ UcdnjhTYNN1xbCodbtsPkYQHeAm/5TajpWTfaRkrOrL1ND3+s97jhEOXlGkoQ9vo VIGl5EuXjf9njOQ7Q2/2JFsn+lrjpGiLX67CODG5Hb5Zkkj80d1Khwa/skNe1rVX f1jQKjIHx9ePXRohKuyDde4QFNht2nyNnf3f/xfLgGlwVzSufQ+bEe1/L9/EETMU gVqMnt6iDQc+j9DlDVXZG/Hth13Gi8azXpTyVBnwMOxjfjtdzHYQVYt9kj3ZxheJ T+P+RBPiUXOZY3DNoNmss99blIbiyS5wgBHx1tH2BZQVp9f8O1Dvb8w2I/rsXzc6 n28Tg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvgedtjeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopehjrghkuhgsrdifrghrthgrkhesvghnthgvrhhprhhishgvuggs rdgtohhmpdhrtghpthhtohepvghulhgvrhesvghulhgvrhhtohdrtghomhdprhgtphhtth hopegusghrhigrnhdrghhrvggvnhesghhmrghilhdrtghomhdprhgtphhtthhopehmihgt hhgrvghlsehprghquhhivghrrdighiiipdhrtghpthhtohepphhgshhqlhdqhhgrtghkvg hrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 24 Feb 2026 12:08:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1771952884; bh=4kcb+gBR4+E/xNBnZc7PtdvHbFxqvcNMVxZiO2ZJs4c=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=xxV7bgxC6ddOjKoU9Ww4E8EE+ogNDvxVgpS+kCN6QlIE2yDyKKkvOQKXzn242C1cO p6zhdVQcRfIIPWOhaLRWeiy/fZvmjs71KtJQzcwc9RNuz7JTIKgrV0uEH4ZtNWiX1G QF+kIeAWv4GIAwusNPdaBRq2444ntinr970Y3d6sgbG0aKlMO/K73tRT8kBvZT9uvY l1haXOA/3ggs2rdHpkgtdTDv3QA8CHQ5nPFV4RNt1cKHlsxAbv3NKWTex1C4J53UFq xMjF5N9vlGG0c//JIQrwLcDymmDItkr2ZnI0KN/6UfAxe7Y6D6h3mHQSbWw7yG2BxA 8Qj29mzZVcUGw== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id DFB237A; Tue, 24 Feb 2026 18:08:04 +0100 (CET) Date: Tue, 24 Feb 2026 18:08:04 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Bryan Green Cc: Euler Taveira , Jakub Wartak , Michael Paquier , pgsql-hackers Subject: Re: [PATCH] Add Windows support for backtrace_functions (MSVC only) Message-ID: <202602241705.pd2wr4oku4nh@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0f76b00a-8d8d-4c6f-ba41-bf6ec5fb08e1@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Feb-23, Bryan Green wrote: > I have removed all but the SymCleanup form the backtrace_cleanup since > it happens at process exit. I have implemented not retrying as you > described above. > > Let me know if this was what you were thinking. OK, thanks, that's pretty much what I was thinking. I've pushed this now. One last change I did is add a check that the wchar2char() return value isn't the full size of the output buffer, because IIUC that's the way it's intended to be used, and it matches the one existing caller that doesn't rely on the max_encoding_chars thing. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Entristecido, Wutra (canción de Las Barreras) echa a Freyr a rodar y a nosotros al mar"