Re: PLPGSQL 'SET SESSION ROLE' problems ..

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Greg Wickham" <Greg(dot)Wickham(at)aarnet(dot)edu(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PLPGSQL 'SET SESSION ROLE' problems ..
Date: 2007-10-11 04:37:34
Message-ID: 3344.1192077454@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Greg Wickham" <Greg(dot)Wickham(at)aarnet(dot)edu(dot)au> writes:
> Is it possible to change the current role to another arbitrary role
> using a PLPGSQL function?

Yes.

> However from within plpgsql the 'superuser' attribute isn't honored when
> trying to change roles

IIRC we deliberately restrict inheritance of superuser status. If you
want to argue there's a bug here you need to provide specific details of
what you did, as well as an argument why superuser status should be more
laxly controlled.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Manish Jain 2007-10-11 05:04:52 Not able to insert binary Data having NULL
Previous Message longlong 2007-10-11 04:21:37 silent install