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 1lTm9Y-0000zF-4S for pgsql-committers@arkaria.postgresql.org; Tue, 06 Apr 2021 13:54:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lTm9X-0007pM-2g for pgsql-committers@arkaria.postgresql.org; Tue, 06 Apr 2021 13:53:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTm9W-0007nh-By for pgsql-committers@lists.postgresql.org; Tue, 06 Apr 2021 13:53:58 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTm9T-0006kA-Gb for pgsql-committers@lists.postgresql.org; Tue, 06 Apr 2021 13:53:58 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id E901E13A0; Tue, 6 Apr 2021 09:53:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 06 Apr 2021 09:53:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=eWOPDRseWh9UxZH99I8cYnUo2jP+UC239Y1rGoJBtEY=; b=QLZ4u6Pf KY/ry4NRHFtIylY9hRcHKew1uw098TBU7IzvlOtkEu9V1jVSDRoG+iVI2P0Bw5h4 K/KEczahpao66LNt1FhR6+3x+fUssZrcfx9KlCcCDf0qTp8yCda1P61brDX3j8p+ mMyYat7YFCJjRb9BXTHqqe5XV0L03wVS7MI7A3ZyDRjQRU2dFV2SnnLWDSRqz54j tU7TzDLuBSHPu/SCuig/L58PHn1tSYsO05d6NGA5fk3fWxONDJ/QxTZnO6JjzqV/ Yh6+yvf+0XuBt0akXHT0xzDZ+7osOs/U4VBnD5Rnt3j9oFUJrIgJZxffRwgfrvG+ J2qpCytjIAaqYA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejhedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugfgjggfsehtke ertddtredunecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhr vgesrghlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpeeufffhjeeiue euffegvddukeegledtveeivdeiueefieeivefgteehueefteehvdenucfkphepudeltddr leehrdduledrleehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id BD0A91080064; Tue, 6 Apr 2021 09:53:50 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 99DA52A0A89; Tue, 6 Apr 2021 09:53:47 -0400 (-04) Date: Tue, 6 Apr 2021 09:53:47 -0400 From: Alvaro Herrera To: David Rowley Cc: craig.ringer@enterprisedb.com, matthieu.garrigues@gmail.com, pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Implement pipeline mode in libpq Message-ID: <20210406135347.GA18862@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Apr-06, David Rowley wrote: > I'm still not really sure why this code does #define directly followed > by an #ifdef for that define. However, just to clear up the final > compiler warning that's currently being produced on MSVC, I've > attached a proposed patch to fix it. Hi David, sorry for failing to reply. (I actually did write a reply, but my mail setup was broken at the time so it was lost. Sigh) I did not intend to have the define defined at all times. Leaving it there was an oversight. Let's just remove the #define line; users interested in that output can turn it on when they need it. Removing it means less clutter in the buildfarm output. Interesting conditions that the test should check for should be tested and dealt with by using pg_fatal, so that the test framework correctly detects a failure. The pg_debug lines are there just to debug the test itself. Now about the define being called DEBUG, that was just a silly oversight; your suggestion to change it to DEBUG_OUTPUT is good, so let's do that. I +1 you pushing your patch. Thanks, -- Álvaro Herrera 39°49'30"S 73°17'W