pgsql: Avoid allocating unnecessary zero-sized array.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Avoid allocating unnecessary zero-sized array.

Jeff Davis-3
Avoid allocating unnecessary zero-sized array.

If there are no aggregates, there is no need to allocate an array of
zero AggStatePerGroupData elements.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3649133b147638f25933c93e3d4f6b920da50332

Modified Files
--------------
src/backend/executor/nodeAgg.c | 29 ++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)