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 1qqwcf-001oTC-TV for pgsql-general@arkaria.postgresql.org; Thu, 12 Oct 2023 14:25:09 +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 1qqwcc-007dZw-PH for pgsql-general@arkaria.postgresql.org; Thu, 12 Oct 2023 14:25:07 +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 1qqwcc-007dZo-Ec for pgsql-general@lists.postgresql.org; Thu, 12 Oct 2023 14:25:07 +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.94.2) (envelope-from ) id 1qqwcZ-000BrM-Fa for pgsql-general@lists.postgresql.org; Thu, 12 Oct 2023 14:25:06 +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 39CEP2xF1024109; Thu, 12 Oct 2023 10:25:02 -0400 From: Tom Lane To: =?utf-8?q?Jana_Mihalidesov=C3=A1?= cc: pgsql-general@lists.postgresql.org Subject: Re: List users privileges for whole cluster/all databases in the cluster In-reply-to: <13Y.H1Z.5kU5AvmUH7E.1b9}Lo@seznam.cz> References: <13Y.H1Z.5kU5AvmUH7E.1b9}Lo@seznam.cz> Comments: In-reply-to =?utf-8?q?Jana_Mihalidesov=C3=A1?= message dated "Thu, 12 Oct 2023 15:32:34 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1024107.1697120702.1@sss.pgh.pa.us> Date: Thu, 12 Oct 2023 10:25:02 -0400 Message-ID: <1024108.1697120702@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =?utf-8?q?Jana_Mihalidesov=C3=A1?= writes: > I try to find out some view, select or something what show me the privileges > for the user across the whole postgresql cluster. The username/user is > global for whole cluster not individual database, so I would like to know > the privileges for the user in all databases in the cluster using one view, > select. This is not possible, because a session can only see the catalogs for its own database (plus the shared catalogs, but those only describe shared objects). regards, tom lane