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 1uejo8-00DmAS-Bs for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Jul 2025 00:27:37 +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 1uejo6-005Bj5-Rt for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Jul 2025 00:27:35 +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.94.2) (envelope-from ) id 1uejo6-005Bix-Id for pgsql-hackers@lists.postgresql.org; Thu, 24 Jul 2025 00:27:34 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uejo5-000Szt-0L for pgsql-hackers@lists.postgresql.org; Thu, 24 Jul 2025 00:27:33 +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 56O0RVfd1549559; Wed, 23 Jul 2025 20:27:31 -0400 From: Tom Lane To: David Rowley cc: PostgreSQL Developers Subject: Re: Fixing MSVC's inability to detect elog(ERROR) does not return In-reply-to: References: Comments: In-reply-to David Rowley message dated "Thu, 24 Jul 2025 12:14:55 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1549557.1753316851.1@sss.pgh.pa.us> Date: Wed, 23 Jul 2025 20:27:31 -0400 Message-ID: <1549558.1753316851@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk David Rowley writes: > I did a quick check of the postgres.exe size with and without this > change. It does save about 13KB, but that seems to be entirely from > the /std:c11 flag. None is due to the compiler emitting less code > after elog(ERROR) / ereport(ERROR) :-( Hmmm ... but you did check that in fact we can remove such known-dead code and not get a warning now? regards, tom lane