File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5075,7 +5075,13 @@ EXPLAIN SELECT count(*) FROM measurement WHERE logdate >= DATE '2008-01-01';
5075
5075
It is possible to determine the number of partitions which were
5076
5076
removed during this phase by observing the
5077
5077
<quote>Subplans Removed</quote> property in the
5078
- <command>EXPLAIN</command> output.
5078
+ <command>EXPLAIN</command> output. The query planner obtains locks for
5079
+ all partitions which are part of the plan. However, when the executor
5080
+ uses a cached plan, locks are only obtained on the partitions which
5081
+ remain after partition pruning done during the initialization phase of
5082
+ execution, i.e., the ones shown in the <command>EXPLAIN</command>
5083
+ output and not the ones referred to by the
5084
+ <quote>Subplans Removed</quote> property.
5079
5085
</para>
5080
5086
</listitem>
5081
5087
You can’t perform that action at this time.
0 commit comments