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 1tlU6O-00CNRg-HJ for pgsql-general@arkaria.postgresql.org; Fri, 21 Feb 2025 14:34:04 +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 1tlU6M-00AYpV-RY for pgsql-general@arkaria.postgresql.org; Fri, 21 Feb 2025 14:34:03 +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 1tlU6M-00AYor-G2 for pgsql-general@lists.postgresql.org; Fri, 21 Feb 2025 14:34:02 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tlU6K-002AKU-0e for pgsql-general@lists.postgresql.org; Fri, 21 Feb 2025 14:34:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 51LEXusQ3072991; Fri, 21 Feb 2025 09:33:56 -0500 From: Tom Lane To: Dominique Devienne cc: "David G. Johnston" , "pgsql-general@lists.postgresql.org" Subject: Re: DROP ROLE as SUPERUSER In-reply-to: References: <2705563.1740067550@sss.pgh.pa.us> <2765124.1740070338@sss.pgh.pa.us> Comments: In-reply-to Dominique Devienne message dated "Fri, 21 Feb 2025 11:56:07 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3072989.1740148436.1@sss.pgh.pa.us> Date: Fri, 21 Feb 2025 09:33:56 -0500 Message-ID: <3072990.1740148436@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. regards, tom lane