Re: Not able to change the owner of function

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Not able to change the owner of function
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C20393819C@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Not able to change the owner of function  (Jignesh Shah <jignesh.shah1980@gmail.com>)
Список pgsql-general
Jignesh Shah wrote:
> could you tell me what could be the issue in below command. I
> could see that there is an option for changing OWNER of
> function but not sure why it is giving this error.
>
> techdb=# ALTER FUNCTION test_create() SET OWNER TO masanip;
> ERROR:  unrecognized configuration parameter "owner"
> techdb=#

Just use the correct syntax as documented:

ALTER FUNCTION name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
    OWNER TO new_owner

i.e., without the SET.

Yours,
Laurenz Albe

В списке pgsql-general по дате отправления:

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: pg_buffercache's usage count
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: