Re: pgsql: Create an RTE field to record the query's lock mode for each rel - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Create an RTE field to record the query's lock mode for each rel
Date
Msg-id 4015.1538437401@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Create an RTE field to record the query's lock mode foreach rel  (Andres Freund <andres@anarazel.de>)
List pgsql-committers
Andres Freund <andres@anarazel.de> 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 ‘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;
>             ^~~~~~~~~~~

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


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Create an RTE field to record the query's lock mode foreach rel
Next
From: Michael Paquier
Date:
Subject: pgsql: Refactor relation opening for VACUUM and ANALYZE