pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndQuadrant.com>
To: pgsql-admin@postgresql.org
Subject: Re: Giving postgres roles 'sudo'-like access
Date: Tue, 20 Dec 2011 08:49:28 -0500
Message-ID: <4EF09268.6090305@2ndQuadrant.com> (raw)
In-Reply-To: <4EEF7C9D.60006@megafon.hr>
References: <4EEF7C9D.60006@megafon.hr>

On 12/19/2011 01:04 PM, Mario Splivalo wrote:
> I need to have postgres role to be able to cancel queries run by that
> same role.
>    

This feature is close to commit as a new one for PostgreSQL 9.2:  
http://archives.postgresql.org/message-id/4EEB3A2B.8090102@2ndQuadrant.com
http://archives.postgresql.org/pgsql-hackers/2011-12/msg00822.php

You might use some of that code and make your own pg_cancel_backend-like 
function that loads into the database.

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us




view thread (4+ messages)

Message-ID: <4EF09268.6090305@2ndQuadrant.com>
Permalink:  ../4EF09268.6090305@2ndQuadrant.com/
Also on:    postgresql.org/message-id/4EF09268.6090305@2ndQuadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: greg@2ndQuadrant.com
  Subject: Re: Giving postgres roles 'sudo'-like access
  In-Reply-To: <4EF09268.6090305@2ndQuadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox