Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egG75-0004xr-0i for pgsql-committers@arkaria.postgresql.org; Mon, 29 Jan 2018 20:33:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egG73-0002Vc-Cz for pgsql-committers@arkaria.postgresql.org; Mon, 29 Jan 2018 20:33:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1egG73-0002VS-8R for pgsql-committers@lists.postgresql.org; Mon, 29 Jan 2018 20:33:09 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egG70-00043O-GO for pgsql-committers@postgresql.org; Mon, 29 Jan 2018 20:33:08 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2908C20F1D; Mon, 29 Jan 2018 15:33:05 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Mon, 29 Jan 2018 15:33:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=RfyiWoEKjO40irUudQiWKtG6vj4jP ey4MjddezRrtzU=; b=cDQijzhXkLV8wXYpVKEgs/faWf1DerTsTcQWhmG3DZBLh 9xj//lAbL0rrtWC/idfwgoy8WwbaGCL0M8haoteCW8ooIQR8BfEnrhbBEnipTiD9 ns+h9fnaKeataleDEWPc1WD1Juwiw85ZcJzg84SHJhBlWRzmpqhuNQ34mWU24GTg X/zK+NIMFlqzxvu6CEFr2n5WliwYG7FQsul23ACamEGnxXJHn+HanuE8H3pDeYKc EAgrEF+17cLLwrmcTu3jyOYHL2zCs3uZl1yDFmGvYZSsUbNVtrqULWDZ8GyGvoz3 vb2BKSDPugVHvQi+9Yz2hZ1OXeAw4VCZiiAXsSp5w== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id D6896247FF; Mon, 29 Jan 2018 15:33:04 -0500 (EST) Date: Mon, 29 Jan 2018 12:33:03 -0800 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Initialize unused ExprEvalStep fields. Message-ID: <20180129203303.bsln3mc3n4ojcc33@alap3.anarazel.de> References: <32346.1517257019@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32346.1517257019@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-01-29 15:16:59 -0500, Tom Lane wrote: > > Also zero-initialize all scratch ExprEvalStep's allocated on the > > stack, to avoid issues with similar future omissions of non-critial > > data. > > Dunno that that's a good idea; it will also serve to hide valid warnings. Possible, but I think it's more likely that new fields with default to zero/NULL anyway. Zero initializing around allocations is a pretty common thing in the PG codebase, so it does feel consistent to me. Greetings, Andres Freund