1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

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.
This commit is contained in:
Robert Haas
2017-01-04 14:56:37 -05:00
parent f1b4c771ea
commit 18fc5192a6
5 changed files with 12 additions and 13 deletions

View File

@ -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.