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

Поиск
Список
Период
Сортировка
Искать
От
Stefan Schwarzer
Тема
Re: ERROR: function crosstab(unknown, unknown) does not exist
Дата
Msg-id
C2B2E66A-1932-4DE0-A1E2-5B7958712CF4@unep.org
Ответ на
Список
Дерево обсуждения
ERROR: function crosstab(unknown, unknown) does not exist Stefan Schwarzer <stefan.schwarzer@unep.org>
Re: ERROR: function crosstab(unknown, unknown) does not exist Adrian Klaver <adrian.klaver@gmail.com>
Re: ERROR: function crosstab(unknown, unknown) does not exist Tom Lane <tgl@sss.pgh.pa.us>
Re: ERROR: function crosstab(unknown, unknown) does not exist Stefan Schwarzer <stefan.schwarzer@unep.org>
Re: ERROR: function crosstab(unknown, unknown) does not exist Adrian Klaver <adrian.klaver@gmail.com>
Re: ERROR: function crosstab(unknown, unknown) does not exist Stefan Schwarzer <stefan.schwarzer@unep.org>
Re: ERROR: function crosstab(unknown, unknown) does not exist Tom Lane <tgl@sss.pgh.pa.us>
Re: ERROR: function crosstab(unknown, unknown) does not exist Stefan Schwarzer <stefan.schwarzer@unep.org>
Re: ERROR: function crosstab(unknown, unknown) does not exist Adrian Klaver <adrian.klaver@gmail.com>
Re: ERROR: function crosstab(unknown, unknown) does not exist Alban Hertroys <haramrae@gmail.com>
>>>>> 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:
>>> 
>>>> Are you schema qualifying the function name when you use it?
>>>> If not, does user XXX have schema tablefunc in their search_path?
>>> 
>>> Also, does user XXX have USAGE permission on the schema containing the
>>> extension?  Usually, if you're going to stick an extension into a schema
>>> other than public, you're going to want to grant usage on that schema to
>>> PUBLIC, or at least more than nobody.
>> 
>> Strange thing is that if I specify the schema for the crosstab function:
>> 
>>      SELECT * FROM tablefunc.crosstab( 'SEL….
>> 
>> than it works.
>> 
>> 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?
В списке pgsql-general по дате отправления
От: Adrian Klaver
Дата:
От: Tom Lane
Дата:
FAQ