Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g77lA-0004Wt-Ip for pgsql-committers@arkaria.postgresql.org; Mon, 01 Oct 2018 23:37:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g77l8-0000cS-2J for pgsql-committers@arkaria.postgresql.org; Mon, 01 Oct 2018 23:37:50 +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.89) (envelope-from ) id 1g77l5-0000bn-Vb for pgsql-committers@lists.postgresql.org; Mon, 01 Oct 2018 23:37:49 +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 1g77kz-0004So-Cr for pgsql-committers@lists.postgresql.org; Mon, 01 Oct 2018 23:37:47 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D840021FE1; Mon, 1 Oct 2018 19:37:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 01 Oct 2018 19:37:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=wVMl4cmxiGQoF+wPxBO2e8JiirwWr iTOPZ4EVEGQ2Ug=; b=xfgi6b9LgjxbA4OInQPtqse6JOZ6jjHZ/mvGJxNcOFy3B ZEF2PCqHIyDWbxmUatSbKdYBZt74hXMKacX3GkO+/0AksQ8Hf9Xm6YFJJuW6IDSP bpAETRVMJI0VqyltiUqQIGeIyb+sJsU3gyJocMyoKhHq5t3toPMWq7173cZn8suP lptWzYw3/tf4ZncJzXeU60tzD9Vyr/y2M+ME4iaLpOv0+/1qVVRuA91mZcP1xq6U NSaxrqagJJt5L/8pf1Bg6DClued+pGtmNL4FTbUn0TdyjMWROkLOc1HBoYyycV7O e6viIjCEMR/i6KKPeBuCu8PkLLbf4p8W1/gtrucvQ== 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:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=wVMl4c mxiGQoF+wPxBO2e8JiirwWriTOPZ4EVEGQ2Ug=; b=H+A5ygpCzD+4D4qcGC34cX 1VDI0J4hXCoOZq7jR1JScPkmWC8ntXPp9ZF/jnyE2zjkpbSeQM6uw1x8emsPVJ9C 8oMkelyWZu2n7o/eYJ2+zv36HUApa6/5klLuA/RGC7WGESYUEWA1HJ52xmWLtwan YK+DUVnj56so4CtpiFu191//J905eEQ7FTNuVml1/mwk/QM1oKA0Ddj6B87sbuwq A/4Zq41V/Lx7qn+gkVyafpxcPqAZJ3N0S6yWrW+vTtgRB4cEGP2iii2pHwcgWHlU LJF8MSPDfuc5oA+Qllgh7kmPep3Rt0a9nkrOD6EVed4nhkVjKrg8WDRZEHw/cY+A == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 29B97E405E; Mon, 1 Oct 2018 19:37:38 -0400 (EDT) Date: Mon, 1 Oct 2018 16:37:36 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Create an RTE field to record the query's lock mode for each rel Message-ID: <20181001233736.us4fas4ypbpc5g22@alap3.anarazel.de> References: 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: Precedence: bulk On 2018-09-30 17:55:57 +0000, Tom Lane wrote: > Create an RTE field to record the query's lock mode for each relation. > Details > ------- > https://git.postgresql.org/pg/commitdiff/fdba460a26af919c0b366755d119f384706e670a This triggers a new warning for me, when building without asserts: /home/andres/src/postgresql/src/backend/executor/execMain.c: In function ‘InitPlan’: /home/andres/src/postgresql/src/backend/executor/execMain.c:963:12: warning: variable ‘rellockmode’ set but not used [-Wunused-but-set-variable] LOCKMODE rellockmode; ^~~~~~~~~~~ Greetings, Andres Freund