Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tlU7x-00CNba-JF for pgsql-general@arkaria.postgresql.org; Fri, 21 Feb 2025 14:35:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tlU7w-00Acdp-4D for pgsql-general@arkaria.postgresql.org; Fri, 21 Feb 2025 14:35:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tlU7v-00AcZj-PB for pgsql-general@lists.postgresql.org; Fri, 21 Feb 2025 14:35:39 +0000 Received: from mail-oo1-xc29.google.com ([2607:f8b0:4864:20::c29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tlU7t-002ALk-2F for pgsql-general@lists.postgresql.org; Fri, 21 Feb 2025 14:35:39 +0000 Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-5f4d935084aso1339063eaf.2 for ; Fri, 21 Feb 2025 06:35:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740148535; x=1740753335; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=96/gDGSnVSH/mNC1B7QtPd9WKz4itWzZbwWVJ/ij4Ok=; b=AIhVemaP/0/JGL8TW2yByVU59y2McSntZtYFfhOdqV5/TqclhP7Ek6jed07PYbgPGS ZFrE0ZgAbcuAETBFIJsHAwHxIhJA7mr4fx/h7WhehgPNRfG28mBECWqaAbOsZe37N9ME JJNuEGeAcEDVMfiQTDEuJMkEymtcCiiXrqxBw5wwuA36jI4HAQtFu+OKnKDJikKup6yA jvazJjtVxP5+VqDk5DE7jxWvNUTdkcsWLEkLodg9SHcf9zVKwbTj9OonWlvPPC8Hw+xN 8zECy0pOvdiynjlS85SYcAe0wzk+d4TrNSy+N7HA7ruHGGDx4CCtoW4r/Dpmod35vdML c13w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740148535; x=1740753335; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=96/gDGSnVSH/mNC1B7QtPd9WKz4itWzZbwWVJ/ij4Ok=; b=JG5u/2xduhy5cQvgRjTF5xER3eDocTEEoT1jnCxq8G0lTpSdhXXDGFQS6oywMtEa3j AsYas6RbCWhelMBRCX9iO+fBKaEv82kMZZ81PPH+z98frkQo47d0dFFwPODHsFLe3ldj yB2PGqdQAPdoz0+Jyq7Q6rjRY0r/aUQqvdtIlLdGemVrRLCY0UgbI2LUKLyPabHLpi0C K6TeY1yTtLAtYXYpDcmmJDBOrzJU8M1mampC8MDiEavknGIdiJkFP/XC9a7v6oi8nQZ7 FFnYkHIoQET9qsP++9S77LxYBxrbDNHqbOCDuFBbiWzSJJZBHjCuU2ID/xJ/yB+z4WHW nw6A== X-Forwarded-Encrypted: i=1; AJvYcCVZUfIUWmLDrkGdPCF55n8iJejlv2Bn64aDA0ddLjjU2hQXTZ2UWffv0jOvzJgdqJVK2/UFZ6AIuLRoCMV6@lists.postgresql.org X-Gm-Message-State: AOJu0YwL1/OsVdw2CI+xs71sBF5eb6yrCxG1PYh+cIbU5qk9F378lpNq JvJrtOKmC9TW5mVnuo9y7qVzqJ8e1tXxeZ6/fya7SSdsgCmDhXwJgDGIp7PongeOwG36zDDzHsi GnGvBPXbvuNqVvbA/xGfwzeDQuOE= X-Gm-Gg: ASbGncsT+6HSA0z+HTUO/szZCVSJE3i1BHN2VENjjHOno44HotxuSFJzYp85FIAe550 3X2JxaOvXEMaubJhlFqhaTcUsYmZnTKH0ym7ilc4vuREOz94ReK1JhEHA+BYuT/SJegUI6ouHhS gFeVa9Gg02mA== X-Google-Smtp-Source: AGHT+IH5IkZXejpUVhw8rQLxrIT4AymQ76wabz7YTBzy0S6nHZUih3oUX+vsghalD3MowJqnAojgmaqdgEMQ4VDd5pg= X-Received: by 2002:a05:6808:6414:b0:3f3:d653:6523 with SMTP id 5614622812f47-3f42469df74mr2778951b6e.8.1740148535523; Fri, 21 Feb 2025 06:35:35 -0800 (PST) MIME-Version: 1.0 References: <2705563.1740067550@sss.pgh.pa.us> <2765124.1740070338@sss.pgh.pa.us> <3072990.1740148436@sss.pgh.pa.us> In-Reply-To: <3072990.1740148436@sss.pgh.pa.us> From: Dominique Devienne Date: Fri, 21 Feb 2025 15:35:19 +0100 X-Gm-Features: AWEUYZmDQeCiGxYRyZ84ZWPD8V2-zH40aJ1l2Xs4gH1H1ztUeoHmw8c-zMKs2ok Message-ID: Subject: Re: DROP ROLE as SUPERUSER To: Tom Lane Cc: "David G. Johnston" , "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000005102c0062ea7e7f3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005102c0062ea7e7f3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 21, 2025 at 3:33=E2=80=AFPM Tom Lane wrote: > Dominique Devienne writes: > > The point I'm trying to make, is that "hunting down" grantor(s) to > connect > > to DB(s) to be able to "force drop" a ROLE is a PITA. And I really wish > > there > > was an easier way to drop a role in that situation. --DD > > REASSIGN OWNED then DROP OWNED is the recommended path. > Hi. Am I missing something? foobar does not OWN anything in this case. So I don't see how these recommendations are relevant to this particular case. --DD --0000000000005102c0062ea7e7f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Feb 21, 2025 at 3:33=E2=80=AFPM T= om Lane <tgl@sss.pgh.pa.us> = wrote:
Dominique Devienne <ddevienne@gmail.com> writes= :
> The point I'm trying to make, is that "hunting down" gra= ntor(s) to connect
> to DB(s) to be able to "force drop" a ROLE is a PITA. And I = really wish
> there
> was an easier way to drop a role in that situation. --DD

REASSIGN OWNED then DROP OWNED is the recommended path.

Hi. Am I missing something? foobar does not OWN anything i= n this case.
So I don't see how these recommendations are rel= evant to this particular case. --DD
--0000000000005102c0062ea7e7f3--