Re: grant permissions to set variable? - Mailing list pgsql-general

From Richard Huxton
Subject Re: grant permissions to set variable?
Date
Msg-id 45F81669.8030300@archonet.com
Whole thread Raw
In response to grant permissions to set variable?  (Vivek Khera <vivek@khera.org>)
Responses Re: grant permissions to set variable?  (Vivek Khera <vivek@khera.org>)
List pgsql-general
Vivek Khera wrote:
> I want to do some debugging on an app, and I'd like to set on a
> per-connection basis "set log_min_duration_statement = 10;"  Obviously
> since I'm not super user I get permission denied.
>
> Is there some GRANT I can grant to the user in question to allow this?
> I don't really want to do it globally or for all connections by that
> user, both of which are easy to do

Could you handle it with a security=definer function?

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: "Jason Lee"
Date:
Subject: Trigger Question
Next
From: Richard Huxton
Date:
Subject: Re: Trigger Question