pgsql: adjust_partition_colnos mustn't be called if not needed - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: adjust_partition_colnos mustn't be called if not needed
Date
Msg-id E1neGSp-000Axc-Pk@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
adjust_partition_colnos mustn't be called if not needed

Add an assert to make this very explicit, as well as a code comment.
The former should silence Coverity complaining about this.

Introduced by 7103ebb7aae8.

Reported-by: Ranier Vilela
Discussion: https://postgr.es/m/CAEudQAqTTAOzXiYybab+1DQOb3ZUuK99=p_KD+yrRFhcDbd0jg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/183c869e1cbf69e7f5408ccb2121d37deec9956e

Modified Files
--------------
src/backend/executor/execPartition.c | 6 ++++++
1 file changed, 6 insertions(+)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Fix documentation for pg_stat_recovery_prefetch.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Make node output prefix match node structure name