Noah Misch <n...@leadboat.com> writes:
>> >> On Fri, Sep 30, 2011 at 9:30 PM, Tom Lane<t...@sss.pgh.pa.us> ?wrote:
>> >>> ISTM it would be reasonably non-controversial to allow users to issue
>> >>> pg_cancel_backend against other sessions logged in as the same userID.
>> >>> The question is whether to go further than that, and if so how much.
>> >>
>> >> In *every* case -- and there are many -- where we've had people
>> >> express pain, this would have sufficed.
>
> +1 for allowing that unconditionally.

+1

>> Or how about making it a grantable database-level privilege?
>
> I think either is overkill.  You can implement any policy by interposing a
> SECURITY DEFINER wrapper around pg_cancel_backend().

I still like the idea of grant cancel and grant terminate.  For another
patch.

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to