Re: Is it possible to stop sessions killing eachother when they all authorize as the same role?

From: Christophe Pettus <xof(at)thebuild(dot)com>
To: Bryn Llewellyn <bryn(at)yugabyte(dot)com>
Cc: Tom Lane PostgreSQL <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, pgsql-general list <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Is it possible to stop sessions killing eachother when they all authorize as the same role?
Date: 2022-09-13 18:47:52
Message-ID: F16876E2-4803-4E59-AA42-3FD4C4ABB97E@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Sep 13, 2022, at 11:39, Bryn Llewellyn <bryn(at)yugabyte(dot)com> wrote:
>
> What are you seeing that I'm failing to?

It works correctly for me, on MacOS:

swift-239:~ xof$ psql
psql (14.5)
Type "help" for help.

xof=# create user r1;
CREATE ROLE
xof=# revoke execute on function pg_terminate_backend from r1;
REVOKE
xof=#
\q
swift-239:~ xof$ psql -U r1 xof
psql (14.5)
Type "help" for help.

xof=> select pg_terminate_backend(123);
ERROR: permission denied for function pg_terminate_backend
xof=>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Hill 2022-09-13 19:19:29 How to Build NLS Files
Previous Message Bryn Llewellyn 2022-09-13 18:39:35 Re: Is it possible to stop sessions killing eachother when they all authorize as the same role?