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 1tl8n4-009cAK-Qn for pgsql-general@arkaria.postgresql.org; Thu, 20 Feb 2025 15:48:42 +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 1tl8n2-008dzO-AB for pgsql-general@arkaria.postgresql.org; Thu, 20 Feb 2025 15:48:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tl8n1-008dyO-Vx for pgsql-general@lists.postgresql.org; Thu, 20 Feb 2025 15:48:40 +0000 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tl8n0-001vFN-0s for pgsql-general@lists.postgresql.org; Thu, 20 Feb 2025 15:48:39 +0000 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-2bcbfad2f8cso458599fac.1 for ; Thu, 20 Feb 2025 07:48:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740066517; x=1740671317; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=tni3TPnxqEH1MD1dQK2z9ybd7LxtnzTKhpcR9lyytfU=; b=nqMsWO97Mo8JWQ7+ezIuST67SmQWj+S3PzoFaMaQNa++8DK+Jf4TZ9hysyG2DPxas1 hQXnAr63+38pDsrHpuKZQKB/J2oHiMsUZ/nTpKNhca8qZ6/P2oRUyDr29Xp24tVeveSJ KJEN+sPnERjf7gSgrUQ7g0PrYXED6rbrFGYikBCLzva1Z0aRGPppi5WenmQmQ4WqE8Sh w4Pr0D/br4s2q+5gFb0gx1y6VLtIfzhTy3IA1G1Mp8GszbmeuMUIZcmc4Crm25eRVBnz eXPR6z+37boDyEVUzTReSSsqzghPQbI6m36N4f9AOQNhZ86j6LLblwJtw6dQUcshVbW0 VluQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740066517; x=1740671317; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tni3TPnxqEH1MD1dQK2z9ybd7LxtnzTKhpcR9lyytfU=; b=lkZnyEAieff0MYW7J+Co+QGUMJLS78XczfgcdA6X1qSDS4ZCOkvJchRU+yrQMyZqeO 45vdxBfpDNMngPscUOZ6SEIx5tKsLujmRteKsPvrMwD+UIMbXMwT3OaHwEnYCCZxrgnL Sajv6stoZvAH/s6TI8XbEddTbSdFXWFnKbuCSV4eifZTVpWvX6X7IOGdk87stKTzszJ9 Im9gsxiXPdtfVikHrsk/YKlVyFT/UF4+u67Pnjggdter8nANJno3gY9gP7caMysVJYk+ aOKPrAELbeN4Is6ngz3oa+PG0/wi1nob1dHE08d5r/HK5hJL5m2nM3TnDGbU0ehH2r1a vzqQ== X-Gm-Message-State: AOJu0YxC/imGFalbZvrPRN7R8zYaesW3Zl7y3Qwb3r/4SxWqGnYu6Hwn 4fozoZ+uaKBCgEmeH8kKKqrPf8X1CMXviyeo2mg+wSmQhQ+kgnynTIjxgJnEo+Dw6pHGDtyy72J sCkDth2Ei/wi6opXTDRPZuQ4Xq1cyBg== X-Gm-Gg: ASbGncude2Sz566hq3mqb9YEZgT+JQGsnlSEXu/1X+VIn/yODNA4LwtvanAAiYqw3FZ E4FKCnmXqkCrWO1vwYeldgbbusZhDhDlhhZGTegdj7pyOr8x7WNrjiq1ETSBGZrrOHcgIu3hk8B k= X-Google-Smtp-Source: AGHT+IGR1amVMuOyxJCkJaJAvuc2lWB1dR/6lx/vlO1XydJhEPHHZIPdW6ukCm9VYWb9YGt8bsKzTTGeUF0CbfMynjk= X-Received: by 2002:a05:6871:8a1:b0:29e:19ee:4832 with SMTP id 586e51a60fabf-2bc99b33ab6mr13849823fac.18.1740066517208; Thu, 20 Feb 2025 07:48:37 -0800 (PST) MIME-Version: 1.0 From: Dominique Devienne Date: Thu, 20 Feb 2025 16:48:20 +0100 X-Gm-Features: AWEUYZlL6aZQqAzQ-zAJ51K8T9lzXq0LaKNGhkElLf0nqys_b1zacoxXv1OQDFA Message-ID: Subject: DROP ROLE as SUPERUSER To: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000a4df33062e94cef6" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a4df33062e94cef6 Content-Type: text/plain; charset="UTF-8" Hi. Today I was surprised that REVOKE ALL ON DATABASE FROM ROLE silently did nothing, even with CASCADE, when I was running it as SUPERUSER, preventing DROP'ing the ROLE. I had to manually SET ROLE to the GRANTOR, do the REVOKE, which DID something this time, and then I could DROP the role. That's hardly convenient :). And I was helping someone else who couldn't figure out how to drop that role. Isn't there a better way? I thought SUPERUSER was more powerful that than. Why isn't it? Thanks, --DD --000000000000a4df33062e94cef6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi. Today I was surprised that REVOKE ALL ON DATABASE FROM= ROLE silently did nothing, even with CASCADE, when I was running it as SUP= ERUSER, preventing DROP'ing the ROLE. I had to manually SET ROLE to the= GRANTOR, do the REVOKE, which DID something this time, and then I could DR= OP the role.

That's hardly convenient :). And I was = helping someone else who couldn't figure out how to drop that role. Isn= 't there a better way?

I thought SUPERUSER was= more powerful that than. Why isn't it?

Thanks= , --DD
--000000000000a4df33062e94cef6--