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 1priCH-00025o-75 for pgsql-admin@arkaria.postgresql.org; Wed, 26 Apr 2023 16:40:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1priCG-0001YL-3N for pgsql-admin@arkaria.postgresql.org; Wed, 26 Apr 2023 16:40:48 +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 1priCF-0001YC-Ol for pgsql-admin@lists.postgresql.org; Wed, 26 Apr 2023 16:40:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1priCD-0021cQ-Bq for pgsql-admin@lists.postgresql.org; Wed, 26 Apr 2023 16:40:46 +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 33QGehiW870559; Wed, 26 Apr 2023 12:40:43 -0400 From: Tom Lane To: richard coleman cc: pgsql-admin@lists.postgresql.org Subject: Re: how to list privileges on the database object itself via SQL? In-reply-to: References: Comments: In-reply-to richard coleman message dated "Wed, 26 Apr 2023 12:34:21 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <870557.1682527243.1@sss.pgh.pa.us> Date: Wed, 26 Apr 2023 12:40:43 -0400 Message-ID: <870558.1682527243@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk richard coleman writes: > This might sound like a silly question, but how would I list the privileges > the various roles have on the database objects themselves? Perhaps you are looking for psql's \l command? It's a bit nonstandardly named (one would expect \d something) regards, tom lane