From 18fc5192a631441a73e6a3b911ecb14765140389 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 4 Jan 2017 14:56:37 -0500 Subject: Remove unnecessary arguments from partitioning functions. RelationGetPartitionQual() and generate_partition_qual() are always called with recurse = true, so we don't need an argument for that. Extracted by me from a larger patch by Amit Langote. --- src/backend/executor/execMain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/backend/executor/execMain.c') diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index d9ff5fa28bc..ff277d300a8 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -1259,8 +1259,7 @@ InitResultRelInfo(ResultRelInfo *resultRelInfo, resultRelInfo->ri_projectReturning = NULL; if (load_partition_check) resultRelInfo->ri_PartitionCheck = - RelationGetPartitionQual(resultRelationDesc, - true); + RelationGetPartitionQual(resultRelationDesc); /* * The following gets set to NULL unless we are initializing leaf * partitions for tuple-routing. -- cgit v1.2.3