Re: Problem with Crosstab (Concatenate Problem)

From: Stefan Schwarzer <stefan(dot)schwarzer(at)unep(dot)org>
To: pgsql-general(at)postgresql(dot)org
Cc: Joseph Conway <mail(at)joeconway(dot)com>
Subject: Re: Problem with Crosstab (Concatenate Problem)
Date: 2010-11-04 06:40:28
Message-ID: 21020D6B-5AB2-4674-82DE-0747E5C1131C@unep.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> What version of PostgreSQL are you running? The error seems to indicate
> that you don't have the crosstab(text,text) form of the function.
>
> In psql do:
> contrib_regression=# \df crosstab
> List of functions
> Schema | Name | Result data type | Argument data types | Type
> --------+----------+------------------+---------------------+--------
> public | crosstab | SETOF record | text | normal
> public | crosstab | SETOF record | text, integer | normal
> public | crosstab | SETOF record | text, text | normal
> (3 rows)
>
> Does it look like this?

Ha, that's a thing! Indeed, it looks like this in my case:

Schema | Name | Result data type | Argument data types | Type
--------+----------+------------------+---------------------+--------
public | crosstab | SETOF record | text, integer | normal
(1 row)

I am running version 8.4.3, on Mac with Kingchaos libraries. Installed the contrib/crosstab myself afterwards.

What can I do now to include the other functions too? Or is this only with newer versions of Crosstab?

Thanks a lot for your help!

Stef

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Schwarzer 2010-11-04 07:00:21 Re: Problem with Crosstab (Concatenate Problem)
Previous Message Joseph Conway 2010-11-04 00:16:21 Re: Problem with Crosstab (Concatenate Problem)