Re: Combining Aggregates

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Robert Haas <robertmhaas(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Kouhei Kaigai <kaigai(at)ak(dot)jp(dot)nec(dot)com>, Amit Kapila <amit(dot)kapila(at)enterprisedb(dot)com>
Subject: Re: Combining Aggregates
Date: 2016-01-15 05:40:26
Message-ID: CAKJS1f8paeUUp3EP0c=bW9KB4CKC51JwVKpDdVYJ=7zqGnbBTA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 15 January 2016 at 17:46, Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
wrote:

> On Fri, Jan 15, 2016 at 3:34 PM, David Rowley
> <david(dot)rowley(at)2ndquadrant(dot)com> wrote:
> > On 8 January 2016 at 22:43, David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
> > wrote:
> >>
> >> I've attached some re-based patched on current master. This is just to
> fix
> >> a duplicate OID problem.
> >>
> >
> > I've attached two updated patched to fix a conflict with a recent change
> to
> > planner.c
>
> I am getting following compilation error and warning with the latest patch,
> because of a function prototype mismatch.
>
> aggregatecmds.c: In function ‘DefineAggregate’:
> aggregatecmds.c:93:8: warning: variable ‘serialTypeType’ set but not
> used [-Wunused-but-set-variable]
> char serialTypeType = 0;
> ^
> clauses.c:434:1: error: conflicting types for ‘partial_aggregate_walker’
> partial_aggregate_walker(Node *node, partial_agg_context *context)
> ^
> clauses.c:100:13: note: previous declaration of
> ‘partial_aggregate_walker’ was here
> static bool partial_aggregate_walker(Node *node, void *context);
> ^

Thanks for noticing that. The compiler I used didn't seem to mind that...
Which is a bit of a worry.

I've attached an updated patch, and the same test patch again.

--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
combine_aggs_test_v5.patch application/octet-stream 9.2 KB
combine_aggregate_state_d56b61d_2016-01-15.patch application/octet-stream 122.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mithun Cy 2016-01-15 05:53:47 Re: POC: Cache data in GetSnapshotData()
Previous Message Chapman Flack 2016-01-15 04:59:40 Re: Proposal: BSD Authentication support