pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mladen Gogala <gogala.mladen@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Is it possible to stop sessions killing eachother when they all authorize as the same role?
Date: Wed, 14 Sep 2022 23:27:46 -0400
Message-ID: <3092212.1663212466@sss.pgh.pa.us> (raw)
In-Reply-To: <be58d648-f927-0f10-31a3-40a470efa362@gmail.com>
References: <10F360BB-3149-45E6-BFFE-10B9AE31F1A6@yugabyte.com>
	<CAKFQuwYr78FAFX4dFL3Mp4qiBZHzQtChTmO91d9FvYn09GzCfw@mail.gmail.com>
	<2F078227-5EEF-4553-89FF-046A6AF12F25@yugabyte.com>
	<CAKFQuwZVq-LerGMTN0E3_7MqhJwtuJuzf0GSnKG32mH_Qf24Zw@mail.gmail.com>
	<E34C9A5F-832D-444C-8798-89BA8F5B386C@yugabyte.com>
	<1883844.1663044542@sss.pgh.pa.us>
	<be58d648-f927-0f10-31a3-40a470efa362@gmail.com>

Mladen Gogala <gogala.mladen@gmail.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@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





view thread (32+ messages)  latest in thread

Message-ID: <3092212.1663212466@sss.pgh.pa.us>
Permalink:  ../3092212.1663212466@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3092212.1663212466@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gogala.mladen@gmail.com
  Subject: Re: Is it possible to stop sessions killing eachother when they all authorize as the same role?
  In-Reply-To: <3092212.1663212466@sss.pgh.pa.us>
  References: <10F360BB-3149-45E6-BFFE-10B9AE31F1A6@yugabyte.com> <CAKFQuwYr78FAFX4dFL3Mp4qiBZHzQtChTmO91d9FvYn09GzCfw@mail.gmail.com> <2F078227-5EEF-4553-89FF-046A6AF12F25@yugabyte.com> <CAKFQuwZVq-LerGMTN0E3_7MqhJwtuJuzf0GSnKG32mH_Qf24Zw@mail.gmail.com> <E34C9A5F-832D-444C-8798-89BA8F5B386C@yugabyte.com> <1883844.1663044542@sss.pgh.pa.us> <be58d648-f927-0f10-31a3-40a470efa362@gmail.com> <3092212.1663212466@sss.pgh.pa.us>

* 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