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

From: Bryn Llewellyn <bryn(at)yugabyte(dot)com>
To: Jeremy Smith <jeremy(at)musicsmith(dot)net>
Cc: 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 22:22:46
Message-ID: 22BAA1A1-E325-4FA8-9400-689AA839A2D8@yugabyte.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> jeremy(at)musicsmith(dot)net wrote:
>
>> bryn(at)yugabyte(dot)com wrote:
>>
>> I say this only to emphasize that there are always things that are critical that are elided in a testcase that tries to be minimal.
>>
>> So it seems that there's something critical about my env that I'm failing to tell you all. But what can it be?
>
> Removing permissions also works for me. In my case, I created a brand new PG14.5 cluster in docker and ran Tom's test case.
>
> Your test code seems quite complex to test this simple case...

Guilty as charged. Sorry. I was too focuses on what I wanted to achieve: to stop sessions connected as "r1" killing other sessions connected as "r1".

> but looking through it, it appears that you revoked permissions to pg_terminate_backend in the postgres database, but then connected as r1 to the play database, where the permissions weren't revoked. You'll have to revoke the permissions in all databases or change it in template1 before creating the new database.

Yes… that's exactly it. I just replied to that effect here:

www.postgresql.org/message-id/B33C40D9-2B79-44C7-B527-86E672BEA71A%40yugabyte.com

before I read this from you. Thanks for your interest in this!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bryn Llewellyn 2022-09-13 22:35:20 Re: Is it possible to stop sessions killing eachother when they all authorize as the same role?
Previous Message Bryn Llewellyn 2022-09-13 22:11:58 Re: Is it possible to stop sessions killing eachother when they all authorize as the same role? >> CASE CLOSED