pgsql: Avoid allocating unnecessary zero-sized array.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid allocating unnecessary zero-sized array.
Date: 2020-03-25 01:57:15
Message-ID: E1jGvIB-0003je-LU@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2020-03-25 03:05:54 pgsql: Allow NULL version for individual collations.
Previous Message Peter Geoghegan 2020-03-24 21:58:51 pgsql: Fix nbtree deduplication README commentary.