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 1uZ7ou-00GQ8e-Ol for pgsql-admin@arkaria.postgresql.org; Tue, 08 Jul 2025 12:53:13 +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 1uZ7oq-0081SV-P2 for pgsql-admin@arkaria.postgresql.org; Tue, 08 Jul 2025 12:53:09 +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 1uZ7oq-0081SN-CR for pgsql-admin@lists.postgresql.org; Tue, 08 Jul 2025 12:53:09 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uZ7op-006DsU-00 for pgsql-admin@lists.postgresql.org; Tue, 08 Jul 2025 12:53:07 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-6099d89a19cso7710538a12.2 for ; Tue, 08 Jul 2025 05:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1751979185; x=1752583985; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=/RLozdhlHIfukZwB3aKN3BcBtaGWtLYpj8gj39wcVAg=; b=lY6syLUqQyBFK8EfH1E/7K/OgyDwQ7iJoBI+xWczBflY0FL2f0FOPHiBmm3TmSA1Ff XSY+N9nCEzo18/CD51vFq3gIB41S52gRfYX9u5WOxhEgHrze3LIXXLmLJaBOkdGdz/GQ rTq/CSYfhthwtyNkydqOauQtGcRp0s0Sv27nAcQtV1zqLNKjd59RPbfJ+MXgppT94JYK 7gcR2XbMP40qi+tfyhg9AUjC5TRppwj7sqW0+RhxEjNjqO5vwFJbExiFnvHSgBD+xWS7 8m17c+bTefGdzPHxwsFjv7KjgOWy5dtwvDUsbQV/TzbwNaxXkaaTjnf0ecs/4puPwrH8 X1nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751979185; x=1752583985; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/RLozdhlHIfukZwB3aKN3BcBtaGWtLYpj8gj39wcVAg=; b=QDWHOs+3zNFW0FiePByG2Pgs3mT4iLot0snBVJ5oNacfN2K0uiwY/fXU+DsZJ82Igv 51X5ldLc4GSLSiE0to5GilF/8fqawGtXQBq+xN1sWqQNuosUgKpssWKW8CVC0MHocgC+ D129rGz3GaoZbGuRiRzTWNWD96xu71KB5aab9HHn3q3Om48AGbpX+p9Jqduy4ebmbCV+ emcBoDV+E2DjIeoVDzg9E7RCSqg5od8SoYWUQSs2wy2VURC3q4vko41VvV+ZxjwXw3kr jctig8Hv5X5gL8QGyxJmSKQkOI2lPSTWsxhyilZyZ4R9eETysRwH/FvizQebTjNf7B/C 4sIA== X-Gm-Message-State: AOJu0YzNQEXIR5DXUcrfiO0cBG8iuFrPt0uxD0jrwE8QI1+dwPeLmGxN rxk4ZOun5a8WxgX8kVg1xuJcBox6HmEVAeKPzrJx2Ra/du61Sb/w/Shc8u7pxThrtPI= X-Gm-Gg: ASbGncs508iFsu0V1PafZVH1JYYTEWrGBItqse1j+n0JE44sakRmXoA/6Bt21XvBYCh JYkLhY9onTZsUqO13w6yHFXP6CAVGP/C27+Fw5u7KWGOnOtkxIwjKn66b7oZZFfZGwnCGmYb8cp azN69uAl8GOz39wwldDlDhWFv1y0YvwsGLfJTkufPfi/zl4A59ihZ2nSo846Z3biJfAOLGprIZB nnMGExfZ/wS4HttWP2pDffcQF7iV8UkGChLJavrsSi7a2RkXWqFIAhP6k4zMb2WzU5/FB0WcRSn noXfQX1LkRsAa9b9FebVzalLfBsKQvUtXN1YC08v7Wv6OfFOFOvZyBPxP/VZkPNGIjwhnVliNYR Ya9D/qPg7DEypJnA= X-Google-Smtp-Source: AGHT+IH89+SpqIKqGfSzvyB1mMRn3c1ObELGNR/SpLRtCdzOTtujIETLqq1us1zc+QLcU0pWVSGhfQ== X-Received: by 2002:a05:6402:2749:b0:608:3f9c:c69d with SMTP id 4fb4d7f45d1cf-60fd6e54caemr12710981a12.33.1751979184690; Tue, 08 Jul 2025 05:53:04 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-60fca6640absm7207488a12.12.2025.07.08.05.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jul 2025 05:53:04 -0700 (PDT) Message-ID: Subject: Re: REVOKE ALL ON ALL OBJECTS IN ALL SCHEMAS FROM some_role? From: Laurenz Albe To: Scott Ribe , Ron Johnson Cc: Pgsql-admin Date: Tue, 08 Jul 2025 14:53:03 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2025-07-08 at 06:16 -0600, Scott Ribe wrote: > I don't have an answer for you, just a question out of curiosity. Is this= a prelude > to dropping the role? Thus, if it existed, DROP ROLE ... CASCADE would ha= ve worked > for your use case? If dropping the role is the reason why the privileges should go, the canoni= cal procedure is: - connect to each database in the cluster in turn; in each: - REASSIGN OWNED BY role_to_drop ... to transfer ownership - DROP OWNED BY role_to_drop to remove owned objects *and privileges* - DROP ROLE role_to_drop Yours, Laurenz Albe