Skip site navigation (1) Skip section navigation (2)

Re: Not able to change the owner of function

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Not able to change the owner of function
Date: 2010-02-24 06:21:49
Message-ID: 20100224062149.GA22249@a-kretschmer.de (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-novice
In response to Jignesh Shah :
> Hi,
>  
> 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"

test=*# \h alter function
Command:     ALTER FUNCTION
Description: change the definition of a function
Syntax:
ALTER FUNCTION name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
    OWNER TO new_owner

Read that and try:

ALTER FUNCTION test_create() OWNER TO masanip;


Regards, Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431  2EB0 389D 1DC2 3172 0C99

In response to

Responses

pgsql-novice by date

Next:From: Jignesh ShahDate: 2010-02-24 06:22:02
Subject: How to get the permissions assigned to user?
Previous:From: Jignesh ShahDate: 2010-02-24 06:14:01
Subject: Not able to change the owner of function

pgsql-general by date

Next:From: Jignesh ShahDate: 2010-02-24 06:22:02
Subject: How to get the permissions assigned to user?
Previous:From: Jignesh ShahDate: 2010-02-24 06:14:01
Subject: Not able to change the owner of function

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group