Re: proposal - GROUPING SETS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
Cc: "PostgreSQL-development Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal - GROUPING SETS
Date: 2008-09-16 14:02:46
Message-ID: 28756.1221573766@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> writes:
> select a, b from t group by grouping sets(a, b);

> is same as:

> select a, NULL from t group by a
> union all
> select NULL, b from t group by b;

Really? That seems utterly bizarre, not to say pointless.
You sure you read the spec correctly?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2008-09-16 14:11:49 Re: Subtransaction commits and Hot Standby
Previous Message Heikki Linnakangas 2008-09-16 14:01:24 Re: Subtransaction commits and Hot Standby