pgsql: Avoid compiler warning in non-assert builds.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid compiler warning in non-assert builds.
Date: 2023-07-22 14:33:02
Message-ID: E1qNDfJ-000mZk-PX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid compiler warning in non-assert builds.

After 3c90dcd03, try_partitionwise_join's child_joinrelids
variable is read only in an Assert, provoking a compiler
warning in non-assert builds. Rearrange code to avoid the
warning and eliminate unnecessary work in the non-assert case.

Per CI testing (via Jeff Davis and Bharath Rupireddy)

Discussion: https://postgr.es/m/ef0de9713e605451f1b60b30648c5ee900b2394c.camel@j-davis.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bda97e47afaeaab6236f37993ce45bb369add3e5

Modified Files
--------------
src/backend/optimizer/path/joinrels.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-07-22 14:35:20 Re: pgsql: Fix calculation of relid sets for partitionwise child joins.
Previous Message Bharath Rupireddy 2023-07-22 03:41:08 Re: pgsql: Fix calculation of relid sets for partitionwise child joins.