On 2018/02/09 21:36, Amit Langote wrote:
> 0004-Faster-partition-pruning.patch
>
> The main patch that adds src/backend/optimizer/util/partprune.c, a module
> to provide the functionality that will replace the current approach of
> calling relation_excluded_by_constraints() for each partition.
>
> Sorry, but there is still this big TODO here, which I'll try to fix early
> next week.
>
> + * partprune.c
> + * Provides functions to prune partitions of a partitioned table by
> + * comparing provided set of clauses with the table's partitions'
> + * boundaries
> + *
> + * TODO: write a longer description of things in this file
And I tried to fix that to some degree in the attached updated version.
Thanks,
Amit