Re: Not able to change the owner of function - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Not able to change the owner of function
Date
Msg-id D960CB61B694CF459DCFB4B0128514C20393819C@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Not able to change the owner of function  (Jignesh Shah <jignesh.shah1980@gmail.com>)
List 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 by date:

Previous
From: Greg Smith
Date:
Subject: Re: pg_buffercache's usage count
Next
From: "Albe Laurenz"
Date:
Subject: Re: