From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | David Rowley <david(dot)rowley(at)2ndquadrant(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: parallel aggregation - Numeric is unsupported? |
Date: | 2016-03-22 05:31:45 |
Message-ID: | CAFj8pRCNG-2429LtUsiojVEUK3tQ9yPcN_QTbwa_ew263iqi8Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2016-03-22 6:28 GMT+01:00 David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>:
>
> On 22/03/2016 5:24 pm, "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> wrote:
> >
> > Hi
> >
> > is it expected in this moment?
> >
> >
> > Table "public.foo"
> > Column │ Type │ Modifiers
> > ════════╪═════════╪═══════════
> > a │ integer │
> >
> > postgres=# \d foo2
> > Table "public.foo2"
> > Column │ Type │ Modifiers
> > ════════╪═════════╪═══════════
> > a │ numeric │
> >
> > postgres=# explain select sum(a) from foo;
> > QUERY
> PLAN
> >
> ════════════════════════════════════════════════════════════════════════════════════════
> > Finalize Aggregate (cost=76498.35..76498.36 rows=1 width=8)
> > -> Gather (cost=76497.93..76498.34 rows=4 width=8)
> > Number of Workers: 4
> > -> Partial Aggregate (cost=75497.93..75497.94 rows=1 width=8)
> > -> Parallel Seq Scan on foo (cost=0.00..69247.94
> rows=2499994 width=4)
> > (5 rows)
> >
> > postgres=# explain select sum(a) from foo2;
> > QUERY PLAN
> > ══════════════════════════════════════════════════════════════════════
> > Aggregate (cost=179053.25..179053.26 rows=1 width=32)
> > -> Seq Scan on foo2 (cost=0.00..154053.60 rows=9999860 width=12)
> > (2 rows)
>
> Yes. There's still a few outstanding patches to add support to serialize
> internal states. See the combine aggregates thread.
>
I'll wait :), thank you for info
Regards
Pavel
From | Date | Subject | |
---|---|---|---|
Next Message | James Sewell | 2016-03-22 05:47:25 | Re: Parallel Aggregate |
Previous Message | David Rowley | 2016-03-22 05:28:47 | Re: parallel aggregation - Numeric is unsupported? |