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 1g77qc-0004lH-I4 for pgsql-committers@arkaria.postgresql.org; Mon, 01 Oct 2018 23:43:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g77qa-0001Ki-3f for pgsql-committers@arkaria.postgresql.org; Mon, 01 Oct 2018 23:43:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g77qZ-0001KZ-RF for pgsql-committers@lists.postgresql.org; Mon, 01 Oct 2018 23:43:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g77qX-0000oc-Eq for pgsql-committers@lists.postgresql.org; Mon, 01 Oct 2018 23:43:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w91NhL1X004016; Mon, 1 Oct 2018 19:43:21 -0400 From: Tom Lane To: Andres Freund cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Create an RTE field to record the query's lock mode for each rel In-reply-to: <20181001233736.us4fas4ypbpc5g22@alap3.anarazel.de> References: <20181001233736.us4fas4ypbpc5g22@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 01 Oct 2018 16:37:36 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <4014.1538437401.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 01 Oct 2018 19:43:21 -0400 Message-ID: <4015.1538437401@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > 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. > This triggers a new warning for me, when building without asserts: > /home/andres/src/postgresql/src/backend/executor/execMain.c: In function= =E2=80=98InitPlan=E2=80=99: > /home/andres/src/postgresql/src/backend/executor/execMain.c:963:12: warn= ing: variable =E2=80=98rellockmode=E2=80=99 set but not used [-Wunused-but= -set-variable] > LOCKMODE rellockmode; > ^~~~~~~~~~~ Yeah, I knew it would do that. I didn't think it was worth working around, because that issue will go away in the next phase of the patch (probably tomorrow). regards, tom lane