From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid allocating unnecessary zero-sized array.
Date: Wed, 25 Mar 2020 01:57:15 +0000
Message-ID: <E1jGvIB-0003je-LU@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: jdavis@postgresql.org
Subject: Re: pgsql: Avoid allocating unnecessary zero-sized array.
In-Reply-To: <E1jGvIB-0003je-LU@gemulon.postgresql.org>
References: <E1jGvIB-0003je-LU@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox