Re: ERROR: function crosstab(unknown, unknown) does not exist

From: Thomas Munro <munro(at)penski(dot)net>
To: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, Stefan Schwarzer <stefan(dot)schwarzer(at)unep(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: function crosstab(unknown, unknown) does not exist
Date: 2012-07-05 18:00:00
Message-ID: 4gohy2le3mxnls5jvgu69cvo.1341511200052@email.android.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> wrote:

>On 07/05/2012 07:46 AM, Stefan Schwarzer wrote:
>>>>>>> Now, when I launch a query which includes "crosstab()" as a postgres user, everything works fine. However, if I launch it as user XXX, it complaints:
>
>>>>
>>>> The search path is indicated as:
>>>>
>>>> "$user", public, metadata, admin, gis, tablefunc, postgis, topology
>>>>
>>>> I added a GRANT USAGE ON SCHEMA tablefunc TO XXX. Just in case, but this didn't solve the problem. Still wondering why it works for user Postgres, but not for user XXX...
>>>>
>>>
>>> Using psql log in as user XXX and run SELECT current_schemas('f');
>>> Do same as the postgres user.
>>> Let us know the results.
>>
>> Ahh…. Indeed, no "tablefunc" schema in there. So, what do I need to do? And what does the command mean?
>
>See here for info:
>http://www.postgresql.org/docs/9.1/interactive/functions-info.html
>
>Per Toms suggestion you need to check the permissions on the schema.
>One way to do that is, from psql type the following and enter:
> \dn+
>>
>
>
>--
>Adrian Klaver
>adrian(dot)klaver(at)gmail(dot)com
>
>
>
>--
>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

Browse pgsql-general by date

  From Date Subject
Next Message Reza Taheri 2012-07-05 19:10:04 Re: The need for clustered indexes to boost TPC-V performance
Previous Message Magnus Hagander 2012-07-05 16:12:01 Re: Cancel a pg_ctl stop