Re: Small clean up in nodeAgg.c

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andres Freund <andres(at)anarazel(dot)de>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Subject: Re: Small clean up in nodeAgg.c
Date: 2021-07-02 10:30:53
Message-ID: CAApHDvpUopFmkxqTQ39dS3u3ao4uS9ucL28LoL=-+g0t=DaqDA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 1 Jul 2021 at 11:09, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Just reading it over quickly, I noticed a comment mentioning
> "aggcombinedfn" which I suppose should be "aggcombinefn".

Thanks. I've fixed that locally.

> No particular opinion on whether this is a net reduction
> of logical complexity.

I had another look over it and I think we do need to be more clear
about when we're talking about aggtransfn and aggcombinefn. The
existing code uses variables name aggtransfn when the value stored
could be the value for the aggcombinefn. Additionally, the other
change to remove the special case build_aggregate_combinefn_expr()
function seems good in a sense of reusing more code and reducing the
amount of code in that file.

Unless anyone thinks differently about this, I plan on pushing the
patch in the next day or so.

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2021-07-02 10:53:08 Re: wrong relkind error messages
Previous Message tanghy.fnst@fujitsu.com 2021-07-02 10:17:55 RE: [HACKERS] logical decoding of two-phase transactions