Re: PIVOT tables and crosstab

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: PIVOT tables and crosstab
Дата
Msg-id 20091211141213.GA30833@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: PIVOT tables and crosstab  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: PIVOT tables and crosstab  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
Pavel Stehule escribió:
> 2009/12/11 Alvaro Herrera <alvherre@commandprompt.com>:

> > I think the standard spelling of this feature is GROUPING SETS along
> > with syntactical sugar CUBE and ROLLUP.  There was a patch for this
> > posted some time ago but it doesn't look like it has moved forward
> > lately.
> >
> > Barring GROUPING SETS, it is very unlikely that crosstab or pivot are
> > going to make it into the core.
>
> I plan start to work on GROUPING SETS early. What I know - GROUPING
> SETS feature is independent on PIVOT/UNPIVOT feature. Personally I
> thing so implementation of PIVOT is simpler than implementation of
> GROUPING SETS.

Hmm, but PIVOT is not on the standard, is it?  As far as I can tell, the
standard wants one to use CUBE and ROLLUP for this kind of thing (and
the standard says that they are syntactical sugar for GROUPING SETS),
but it's possible that I am misreading what they are supposed to do.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

В списке pgsql-general по дате отправления:

Предыдущее
От: Mihamina Rakotomandimby
Дата:
Сообщение: Re: [General] beginner!!!
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Postgres.exe Process taking too much memory and CPU usage - making the system extremely slow.