Re: pgsql: Further fix for EvalPlanQual with mix of local and foreign parti

From: Andres Freund <andres(at)anarazel(dot)de>
To: Etsuro Fujita <efujita(at)postgresql(dot)org>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Further fix for EvalPlanQual with mix of local and foreign parti
Date: 2022-02-03 18:36:55
Message-ID: 20220203183655.ralgkh54sdcgysmn@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Hi,

On 2022-02-03 06:22:58 +0000, Etsuro Fujita wrote:
> Further fix for EvalPlanQual with mix of local and foreign partitions.

My compiler (as well as cfbot) now complains that there is an unused variable,
when building without assertions:

/home/andres/src/postgresql/src/backend/executor/nodeForeignscan.c: In function ‘ForeignNext’:
/home/andres/src/postgresql/src/backend/executor/nodeForeignscan.c:47:21: warning: unused variable ‘estate’ [-Wunused-variable]
47 | EState *estate = node->ss.ps.state;
| ^~~~~~

Seems best to just use node->ss.ps.state instead of the local estate variable?
Rather than using the noisier PG_USED_FOR_ASSERTS_ONLY.

I'll make it so, unless you want to?

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-02-03 18:48:22 pgsql: Fix compiler warning in non-assert builds, introduced in f862d57
Previous Message Andrew Dunstan 2022-02-03 17:19:55 pgsql: Authorize new user in pg_basebackup tests