Re: CROSSTAB( .. only one column has values... )

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tim Clarke <tim(dot)clarke(at)minerva(dot)info>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: CROSSTAB( .. only one column has values... )
Date: 2021-01-05 18:45:44
Message-ID: a0b93b67-eaf1-0d3d-1a97-37ba578e6a4b@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/5/21 12:11 PM, Tim Clarke wrote:
> imho the crosstab() function isn't a good implementation. The biggest failure it
> has is that you must know exactly how many output columns you will have in the
> result /_prior to running it

*That* is a function of how Postgres set returning functions work, and not
specific to crosstab(). It is not easily fixed. Patches to fix that would be
welcomed!

Joe

--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2021-01-05 18:53:56 Re: CROSSTAB( .. only one column has values... )
Previous Message Thomas Kellerer 2021-01-05 17:15:54 Re: CROSSTAB( .. only one column has values... )