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 1q5bjd-0000bi-9I for pgsql-general@arkaria.postgresql.org; Sun, 04 Jun 2023 00:36:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q5bjc-0008Sb-65 for pgsql-general@arkaria.postgresql.org; Sun, 04 Jun 2023 00:36:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q5bjD-0003rw-5w for pgsql-general@lists.postgresql.org; Sun, 04 Jun 2023 00:36:15 +0000 Received: from mout-u-204.mailbox.org ([80.241.59.204]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q5bjA-0004SR-Cz for pgsql-general@postgresql.org; Sun, 04 Jun 2023 00:36:14 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4QYd885hFDz9sZs; Sun, 4 Jun 2023 02:36:08 +0200 (CEST) Date: Sun, 4 Jun 2023 02:36:07 +0200 (CEST) From: Erik Wienhold To: Andrus , pgsql-general Message-ID: <1059331645.809519.1685838967303@office.mailbox.org> In-Reply-To: <2751c0ad-1e40-2aa4-eab6-6d3e0f1ff6bd@hot.ee> References: <568e6761-d224-7c72-59f3-267b39bde227@hot.ee> <2140448238.796716.1685796376553@office.mailbox.org> <1408288797.797459.1685797672449@office.mailbox.org> <371357275.803438.1685810290820@office.mailbox.org> <872810576.804014.1685813147131@office.mailbox.org> <666755787.808219.1685825876788@office.mailbox.org> <2751c0ad-1e40-2aa4-eab6-6d3e0f1ff6bd@hot.ee> Subject: Re: How to remove user specific grant and revoke MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 03/06/2023 23:34 CEST Andrus wrote: > > psql (12.2 (Debian 12.2-2.pgdg100+1)) > Type "help" for help. > > sba=# REVOKE ALL ON public.kaspriv FROM alekspoluh; > REVOKE > sba=# \o result.txt > sba=# \dp public.kaspriv > > sba=# \q > #grep alekspoluh result.txt > Returns nothing. So output does not contain this role. > > I re-opened pgadmin. alekspoluh role is no more displayed in kaspriv table > sql window. > pgadmin shows only single reset role command. Now it shows > REVOKE ALL ON TABLE public.kaspriv FROM yllelohmus; > > I ran > > REVOKE ALL ON TABLE public.kaspriv FROM yllelohmus; > After that pgadmin shows next single revoke command: > REVOKE ALL ON TABLE public.kaspriv FROM villuuus; > It looks like pgAdmin shows only one REVOKE command but actually there are > more revokes.