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 1joTLj-0007I9-NR for pgsql-docs@arkaria.postgresql.org; Thu, 25 Jun 2020 14:59:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1joTLi-00071T-EG for pgsql-docs@arkaria.postgresql.org; Thu, 25 Jun 2020 14:59:34 +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 1joTLi-00071M-8a for pgsql-docs@lists.postgresql.org; Thu, 25 Jun 2020 14:59:34 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1joTLf-0003nq-La for pgsql-docs@lists.postgresql.org; Thu, 25 Jun 2020 14:59:33 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1joTLb-000232-N7; Thu, 25 Jun 2020 10:59:27 -0400 Date: Thu, 25 Jun 2020 10:59:27 -0400 From: Bruce Momjian To: hans@matfyz.cz, pgsql-docs@lists.postgresql.org Subject: Re: listing roles Message-ID: <20200625145927.GE13627@momjian.us> References: <159301998007.675.16158762640787145650@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <159301998007.675.16158762640787145650@wrigleys.postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Jun 24, 2020 at 05:33:00PM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/12/user-manag.html > Description: > > Thank you for perfect documentation. > I am missing in chapter 21 (Database roles) a section about *listing roles* > both as psql commands and selects to catalogue or pg functions. E.g. to > answer question like What roles is CURRENT_USER member of? Well, we _could_ sprinkle psql backslash commands in all the places that reference backslash command features, but that would make the text awkward. psql \du does show you want you wanted. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee