Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKD8o-0004XK-Qj for pgsql-general@arkaria.postgresql.org; Fri, 03 Apr 2020 03:37:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jKD8n-0005MQ-NX for pgsql-general@arkaria.postgresql.org; Fri, 03 Apr 2020 03:37:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKD8n-0005MJ-B8 for pgsql-general@lists.postgresql.org; Fri, 03 Apr 2020 03:37:09 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jKD8l-0006lj-41 for pgsql-general@lists.postgresql.org; Fri, 03 Apr 2020 03:37:08 +0000 Received: by mail-pj1-x1032.google.com with SMTP id m15so2363038pje.3 for ; Thu, 02 Apr 2020 20:37:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=MMXXmrAlLptZ0HIgBTYjz59TJaNyKccs+XgOH+Ny9RQ=; b=CG0FoRc8X+dQmv/nNcF7lR3A9imvJ58M9KYVM4kXSS6pP+LAbvChBwvIUeCXvTXetm n9/KUBGHSU29StKfuZggBcIMbdHkLlqSVaghQodD26biOqIwDFejcPUWcQMhh3Omy4jP sZKTCimtaoPfQewk0pYDIS0zhpj96RK3LPLx866MA7TfPAD7KES0yPLLd3NkkXp/+E00 BRAdy6gRdkWC34FqwGH7qxeDQFot/JmwiAAzHyZ5PpnlQeB9nkIOTfWmmQijbtWng/sX x5HUHy34pM6aLGCXSzBJIxC9MShPAvQRqBAs2AdoN85GzQv1e/yj10AA3cYyqvE3w2li C+vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=MMXXmrAlLptZ0HIgBTYjz59TJaNyKccs+XgOH+Ny9RQ=; b=Ei483jAf59EUDEFqiuCmdp+iev9KNuF9cnNU/HpGDngdGBMwNu2x6BGKybCGyTGLJ4 mRXC70neB35LsEA1QQhh3AX6cCLH94lVcFITxg6qCpCHrQNutGMBE23uuBJGdDBxv9Si o1+bpDma5yQAS21pjKjzck0B8YDd77XvEZxC1KRtZQtiIDWLUSuxr0LpLOgVlukaghTS R09NKG79nPptpDCBYCR0y0F3TFPca4HGu1lzaISQgFApJ8ywP+nIBh/FggeAwhSZMlhh 95miugybCMxtTvynaORrOkenqfkxaPe3htuzR0SToKifTCV4X2LmH7JjP5tw1fdQAVAN 8p3A== X-Gm-Message-State: AGi0PuZW7DA9O+ET9V/xZM8xX+YwesWml8gsBjcuxuPVb0MzmWtqXV1z a2yU2wV5NYyk/wkcO+Bmd5g= X-Google-Smtp-Source: APiQypIYxx98P1g2b+yJPWKz8IxYXpl4W7izE+cOfMQcPEGaYPSFqxrW3TtdIT68NK6Pc0u31SnRvw== X-Received: by 2002:a17:90a:c08c:: with SMTP id o12mr7440394pjs.27.1585885025782; Thu, 02 Apr 2020 20:37:05 -0700 (PDT) Received: from ?IPv6:2600:8801:8800:b8::b? ([2600:8801:8800:b8::b]) by smtp.gmail.com with ESMTPSA id c8sm4884723pfj.108.2020.04.02.20.37.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Apr 2020 20:37:05 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_4154B811-78FB-4D00-9C4A-F5DB54A26F25" Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: Backing out of privilege grants rabbit hole From: Guyren Howe In-Reply-To: Date: Thu, 2 Apr 2020 20:37:00 -0700 Cc: "pgsql-general@lists.postgresql.org" X-Mailbutler-Message-Id: 6B348ABF-C106-492B-9A90-FEAF2EBDDC05 Message-Id: References: To: AC Gomez X-Mailer: Apple Mail (2.3608.60.0.2.5) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_4154B811-78FB-4D00-9C4A-F5DB54A26F25 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii https://www.postgresql.org/docs/12/sql-drop-owned.html = > On Apr 2, 2020, at 20:34 , AC Gomez wrote: >=20 > Do I understand correctly that if a role was assigned countless object = privileges and you want to delete that role you have to sift through a = myriad of privilege grants in what amounts to a time consuming trial and = error exercise until you've got them all? >=20 > Or is there a single command that with just delete the role and do a = blanket grant removal at the same time? --Apple-Mail=_4154B811-78FB-4D00-9C4A-F5DB54A26F25 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 https://www.postgresql.org/docs/12/sql-drop-owned.html

On Apr 2, 2020, at 20:34 , AC Gomez <antklc@gmail.com> = wrote:

Do I understand correctly that if a role was assigned = countless object privileges and you want to delete that role you have to = sift through a myriad of privilege grants in what amounts to a time = consuming trial and error exercise until you've got them all?

Or is there a single command that with just delete the role = and do a blanket grant removal at the same time?

3D""= --Apple-Mail=_4154B811-78FB-4D00-9C4A-F5DB54A26F25--