Re: Aggregation ordering with GROUP BY

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Schoen <t(dot)schoen(at)vitrado(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Aggregation ordering with GROUP BY
Date: 2005-08-11 03:18:09
Message-ID: 17746.1123730289@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thomas Schoen <t(dot)schoen(at)vitrado(dot)de> writes:
> Now, finally, my questions are:
> - Is there any guaranty, that two aggregates in a GROUP BY statement are
> aggregated in the same order?
> - If yes: is there any guaranty the behaviour won't change in future
> versions of PG. (I suppose SQL-standard doesn't make any statement about
> how the behaviour should be here.)

No, the spec doesn't promise anything, and so we don't either. In
practice though I find it hard to visualize why the implementation would
not process all the aggregates in parallel.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message William Bug 2005-08-11 03:27:53 Re: Inheritance vs. LIKE - need advice
Previous Message Tony Caduto 2005-08-11 02:54:45 Re: EnterpriseDB mentioned in eweek, and...