pgsql: Fix buffer usage stats for nodes above Gather Merge.

2020-07-24 Thread Amit Kapila
Fix buffer usage stats for nodes above Gather Merge. Commit 85c9d347 addressed a similar problem for Gather and Gather Merge nodes but forgot to account for nodes above parallel nodes. This still works for nodes above Gather node because we shut down the workers for Gather node as soon as there a

pgsql: Fix buffer usage stats for nodes above Gather Merge.

2020-07-24 Thread Amit Kapila
Fix buffer usage stats for nodes above Gather Merge. Commit 85c9d347 addressed a similar problem for Gather and Gather Merge nodes but forgot to account for nodes above parallel nodes. This still works for nodes above Gather node because we shut down the workers for Gather node as soon as there a

pgsql: Fix buffer usage stats for nodes above Gather Merge.

2020-07-24 Thread Amit Kapila
Fix buffer usage stats for nodes above Gather Merge. Commit 85c9d347 addressed a similar problem for Gather and Gather Merge nodes but forgot to account for nodes above parallel nodes. This still works for nodes above Gather node because we shut down the workers for Gather node as soon as there a

pgsql: Fix buffer usage stats for nodes above Gather Merge.

2020-07-24 Thread Amit Kapila
Fix buffer usage stats for nodes above Gather Merge. Commit 85c9d347 addressed a similar problem for Gather and Gather Merge nodes but forgot to account for nodes above parallel nodes. This still works for nodes above Gather node because we shut down the workers for Gather node as soon as there a

pgsql: Fix buffer usage stats for nodes above Gather Merge.

2020-07-24 Thread Amit Kapila
Fix buffer usage stats for nodes above Gather Merge. Commit 85c9d347 addressed a similar problem for Gather and Gather Merge nodes but forgot to account for nodes above parallel nodes. This still works for nodes above Gather node because we shut down the workers for Gather node as soon as there a