pgsql: Avoid compiler warning in non-assert builds.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Avoid compiler warning in non-assert builds.
Дата
Msg-id E1qNDfJ-000mZl-Q6@gemulon.postgresql.org
обсуждение исходный текст
Список 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
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/11237e5a46ca2221aca5c74bf43bb58eff8dcc3b

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: pgsql: Fix calculation of relid sets for partitionwise child joins.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix calculation of relid sets for partitionwise child joins.