Re: Should SET ROLE inherit config params? - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Should SET ROLE inherit config params?
Date
Msg-id 87bps566ga.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Should SET ROLE inherit config params?  (Guillaume Smet <guillaume.smet@gmail.com>)
Responses Re: Should SET ROLE inherit config params?  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
Guillaume Smet <guillaume.smet@gmail.com> writes:

> On Fri, Mar 13, 2009 at 2:39 AM, Josh Berkus <josh@agliodbs.com> wrote:
>> SET ROLE special WITH SETTINGS
>>
>> ... or similar; I'd need to find an existing keyword which works.
>
> Perhaps something like "SET ROLE special NEW SESSION;".
>
> It solves a problem mentioned by Tom as it's very clear that it's a
> new session so when you reset the settings to what they were at
> session start, you take the default settings of special.

So this is just syntactic sugar for 

SET ROLE;
RESET ALL;

Or is it more or less?

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's RemoteDBA services!


pgsql-hackers by date:

Previous
From: Guillaume Smet
Date:
Subject: Re: Should SET ROLE inherit config params?
Next
From: Oleg Bartunov
Date:
Subject: Re: GIN, partial matches, lossy bitmaps