Re: grant permissions to set variable?

From: Richard Huxton <dev(at)archonet(dot)com>
To: Vivek Khera <vivek(at)khera(dot)org>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: grant permissions to set variable?
Date: 2007-03-14 15:36:09
Message-ID: 45F81669.8030300@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-03-14 15:37:33 Re: Trigger Question
Previous Message Terry Lee Tucker 2007-03-14 15:35:45 Re: Trigger Question