aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execPartition.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/executor/execPartition.c')
-rw-r--r--src/backend/executor/execPartition.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/executor/execPartition.c b/src/backend/executor/execPartition.c
index eb491061024..ac03271882f 100644
--- a/src/backend/executor/execPartition.c
+++ b/src/backend/executor/execPartition.c
@@ -685,7 +685,7 @@ ExecInitPartitionInfo(ModifyTableState *mtstate, EState *estate,
* list and searching for ancestry relationships to each index in the
* ancestor table.
*/
- if (list_length(rootResultRelInfo->ri_onConflictArbiterIndexes) > 0)
+ if (rootResultRelInfo->ri_onConflictArbiterIndexes != NIL)
{
List *childIdxs;