Re: retrieve grouping sets/rollup rows

From: James Keener <jim(at)jimkeener(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Tom Smith <tomsmith1989sk(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: retrieve grouping sets/rollup rows
Date: 2016-03-14 03:04:03
Message-ID: 56E62A23.4060102@jimkeener.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

/me has learned something new!

Thanks!

On 03/13/2016 10:44 PM, Tom Lane wrote:
>>> On 03/13/2016 10:07 PM, Tom Smith wrote:
>>>> It would help if the resultset has some param to mark which is which
>>>> with the grouping sets index.
>
> I think you're looking for the GROUPING() function. See
> http://www.postgresql.org/docs/9.5/static/functions-aggregate.html
>
> regards, tom lane
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Smith 2016-03-14 03:13:06 Re: retrieve grouping sets/rollup rows
Previous Message Tom Lane 2016-03-14 02:44:55 Re: retrieve grouping sets/rollup rows