Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f4a0c7a

Browse files
feodorvbwagner
authored andcommitted
Fix counting of parrallel nodes.
Commit 2157a61 adds test which fails with in-progress explain patch by Maxim Milyutin. During summarization it could lost previously collected values.
1 parent 458a977 commit f4a0c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/executor/instrument.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ InstrAggNode(Instrumentation *dst, Instrumentation *add)
161161
dst->total += add->total;
162162
dst->ntuples += add->ntuples;
163163
dst->nloops += add->nloops;
164-
dst->nfiltered1 += add->nfiltered1;
165-
dst->nfiltered2 += add->nfiltered2;
164+
dst->nfiltered1 += add->nfiltered1 + add->accum_nfiltered1;
165+
dst->nfiltered2 += add->nfiltered2 + add->accum_nfiltered2;
166166

167167
/* Add delta of buffer usage since entry to node's totals */
168168
if (dst->need_bufusage)

0 commit comments

Comments
 (0)