Re: crosstab function

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Martin Mueller <martinmueller(at)northwestern(dot)edu>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: crosstab function
Date: 2019-02-27 02:04:17
Message-ID: 0322fd1d-542b-d549-10a3-c3ad40646578@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/26/19 5:51 PM, Martin Mueller wrote:
> I run Postgres 10.5.  I understand that there is something called
> tablefunc and it includes a crosstab function. On Stack Overflow I learn
> that you import this function. But from where and how?  The Postgres
> documentation is quite clear and intelligible to a retired English
> professor like me, but there is nothing in the Postgres documentation
> about how to do the import, and a search for ‘import modules’ yields
> nothing.

tablefunc is a contrib module so we need to know something information
about your Postgres setup:

1) Your OS ?

2) How did you install Postgres?

>
> I tried to emulate a Stack overflow query that does what I want to do,
> but got an error message saying that the crosstab function doesn’t
> exist. I tried
>
> CREATEEXTENSION IFNOTEXISTStablefunc;
>
> but it did nothing. It doesn’t seem to work  as import statements in
> Python do

The above depends on the module code actually existing where CREATE
EXTENSION can find it. Whether the module exists and where it exists
depends on the answers to the questions above.

>
> -----
>
> Martin Mueller
> Professor emeritus of English and Classics
>
> Northwestern University
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Gierth 2019-02-27 02:07:49 Re: crosstab function
Previous Message Martin Mueller 2019-02-27 01:51:13 crosstab function