Commit d7a95f06 authored by Alvaro Herrera's avatar Alvaro Herrera

Minor comment updates

Fix a couple of typos, and update a comment about why we set a BMS to
NULL.

Author: David Rowley
Discussion: http://postgr.es/m/CAKJS1f-tux=KdUz6ENJ9GHM_V2qgxysadYiOyQS9Ko9PTteVhQ@mail.gmail.com
parent 7ba6ee81
...@@ -1524,9 +1524,12 @@ ExecFindInitialMatchingSubPlans(PartitionPruneState *prunestate, int nsubnodes) ...@@ -1524,9 +1524,12 @@ ExecFindInitialMatchingSubPlans(PartitionPruneState *prunestate, int nsubnodes)
/* /*
* Record that partition pruning has been performed for external params. * Record that partition pruning has been performed for external params.
* This partly also serves to ensure we never call this function twice * These are not required again afterwards, and nullifying them helps
* with the same input and also so that ExecFindMatchingSubPlans is aware * ensure nothing accidentally calls this function twice on the same
* that pruning has already been performed for external Params. * PartitionPruneState.
*
* (Note we keep prunestate->allparams, because we do use that one
* repeatedly in ExecFindMatchingSubPlans).
*/ */
bms_free(prunestate->extparams); bms_free(prunestate->extparams);
prunestate->extparams = NULL; prunestate->extparams = NULL;
...@@ -1607,7 +1610,7 @@ ExecFindInitialMatchingSubPlans(PartitionPruneState *prunestate, int nsubnodes) ...@@ -1607,7 +1610,7 @@ ExecFindInitialMatchingSubPlans(PartitionPruneState *prunestate, int nsubnodes)
/* /*
* ExecFindMatchingSubPlans * ExecFindMatchingSubPlans
* Determine which subplans match the the pruning steps detailed in * Determine which subplans match the pruning steps detailed in
* 'pprune' for the current Param values. * 'pprune' for the current Param values.
* *
* Here we utilize both external and exec Params for pruning. * Here we utilize both external and exec Params for pruning.
......
...@@ -40,7 +40,7 @@ typedef struct PartitionPruneContext ...@@ -40,7 +40,7 @@ typedef struct PartitionPruneContext
/* /*
* Can be set when the context is used from the executor to allow params * Can be set when the context is used from the executor to allow params
* found matching the partition key to be evaulated. * found matching the partition key to be evaluated.
*/ */
PlanState *planstate; PlanState *planstate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment