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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Create an RTE field to record the query's lock mode for each rel
Дата
Msg-id 4015.1538437401@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Create an RTE field to record the query's lock mode foreach rel  (Andres Freund <andres@anarazel.de>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Create an RTE field to record the query's lock mode foreach rel
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Refactor relation opening for VACUUM and ANALYZE