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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com>
Cc: 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-15 03:27:46
Message-ID: 3092212.1663212466@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com> writes:
> Tom, I did the same thing on 14.5, and it behaves as Bryn alleges:

Looks to me like you made the same mistake as Bryn. You
revoked the permission in the postgres database:

> postgres=# select proacl from pg_proc where proname =
^^^^^^^^
> 'pg_terminate_backend';
>         proacl
> -----------------------
>  {postgres=X/postgres}
> (1 row)

> mgogala(at)umajor ~]$ psql -U scott
> Password for user scott: psql (14.5)
> Type "help" for help.
> scott=> select pid from pg_stat_activity where
^^^^^

... and here you're testing the permission in the "scott" database.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2022-09-15 03:40:08 Re: Is it possible to stop sessions killing eachother when they all authorize as the same role?
Previous Message Mladen Gogala 2022-09-15 02:27:04 Re: Is it possible to stop sessions killing eachother when they all authorize as the same role?