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

From Guillaume Smet
Subject Re: Should SET ROLE inherit config params?
Date
Msg-id 1d4e0c10903130125n2702cd2ekae997dea4f78b404@mail.gmail.com
Whole thread Raw
In response to Re: Should SET ROLE inherit config params?  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Should SET ROLE inherit config params?  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
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.

-- 
Guillaume


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: how to trace the pgsql text format protocol [implementing driver]
Next
From: Gregory Stark
Date:
Subject: Re: Should SET ROLE inherit config params?