Re: PIVOT tables and crosstab

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Simon Windsor <simon(dot)windsor(at)cornfield(dot)me(dot)uk>, pgsql-general(at)postgresql(dot)org
Subject: Re: PIVOT tables and crosstab
Date: 2009-12-11 06:52:28
Message-ID: 162867790912102252xf54b94fn2ec35b4fcb889d25@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2009/12/11 Alvaro Herrera <alvherre(at)commandprompt(dot)com>:
> Simon Windsor wrote:
>
>> Are there any plans to embed crosstab within the main release of
>> Postgres, rather than as a Contrib component.
>>
>> Also, are there plans to enhance crosstab along the lines of Oracle 11g
>> of pivot command?
>
> 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.

Regards
Pavel Stehule
> --
> Alvaro Herrera                                http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message A.Bhattacharya 2009-12-11 06:55:57 Postgres.exe Process taking too much memory and CPU usage - making the system extremely slow.
Previous Message Stephen Tyler 2009-12-11 02:38:24 Re: Excessive (and slow) fsync() within single transaction