Re: Dynamic table with variable number of columns - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Dynamic table with variable number of columns
Date
Msg-id 20060714185028.GA20608@wolff.to
Whole thread Raw
In response to Re: Dynamic table with variable number of columns  (nkunkov@optonline.net)
Responses Re: Dynamic table with variable number of columns  (nkunkov@optonline.net)
List pgsql-general
On Wed, Jul 12, 2006 at 13:38:34 -0700,
  nkunkov@optonline.net wrote:
> Hi,
> Thanks again.
> One more question.  Will crosstab function work if i will not know the
> number/names of columns before hand?  Or I need to supply colum
> headings?

I checked a bit into this, and the actual contrib name is tablefunc, not
crosstab. It provides crosstab functions for up to 4 columns, but it isn't
hard to make ones that handle more columns.

You can read the included readme file at:
http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tablefunc/README.tablefunc?rev=1.14

pgsql-general by date:

Previous
From: "Sergio Duran"
Date:
Subject: Re: I need help creating a query
Next
From: Reece Hart
Date:
Subject: Re: apparent wraparound