HashAgg: before spilling tuples, set unneeded columns to NULL.
authorJeff Davis <jdavis@postgresql.org>
Mon, 13 Jul 2020 00:48:49 +0000 (17:48 -0700)
committerJeff Davis <jdavis@postgresql.org>
Mon, 13 Jul 2020 05:59:32 +0000 (22:59 -0700)
commit2302302236a0c7aeba3377d78dd9d80ba53247df
treef19718ad920c15d57d796f5879c9498a10233d76
parent0babd109801e5ecd90df29589c23c6daf3ae69f7
HashAgg: before spilling tuples, set unneeded columns to NULL.

This is a replacement for 4cad2534. Instead of projecting all tuples
going into a HashAgg, only remove unnecessary attributes when actually
spilling. This avoids the regression for the in-memory case.

Discussion: https://postgr.es/m/a2fb7dfeb4f50aa0a123e42151ee3013933cb802.camel%40j-davis.com
Backpatch-through: 13
src/backend/executor/nodeAgg.c
src/include/nodes/execnodes.h