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 1qJzFJ-0005bT-Cr for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Jul 2023 16:32: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 1qJzFI-0001Y6-9q for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Jul 2023 16:32:48 +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 1qJzFH-0001Wo-SE; Thu, 13 Jul 2023 16:32:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qJzFF-000GGg-0G; Thu, 13 Jul 2023 16:32: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 36DGWeXD2904261; Thu, 13 Jul 2023 12:32:41 -0400 From: Tom Lane To: Pavel Luzanov cc: "David G. Johnston" , "Jonathan S. Katz" , Robert Haas , David Zhang , "pgsql-hackers@lists.postgresql.org" , rmt@lists.postgresql.org, horikyota.ntt@gmail.com Subject: Re: psql: Add role's membership options to the \du+ command In-reply-to: <84651345-5f0d-50c9-ef3f-ad4ba25b9f25@postgrespro.ru> References: <39e7431c-1224-ab05-c67c-68f4cf625442@postgrespro.ru> <6b64c59a-fe41-bb07-d0cd-856896412b00@postgresql.org> <7aa3d663-1ea9-de0d-c13a-cbce83902214@postgrespro.ru> <4128935.1687478926@sss.pgh.pa.us> <105356.1687565531@sss.pgh.pa.us> <41517a12-6599-b54b-d30b-3bae906a280b@postgrespro.ru> <1721887.1688836041@sss.p! gh.pa.us> <50ea2597-5e3f-372c-1ea8-5ba4f3edd690@postgrespro.ru> <2879332.1689260497@sss.pgh.pa.us> <84! 651345-5f0d-50c9-ef3f-ad4ba25b9f25@postgrespro.ru> Comments: In-reply-to Pavel Luzanov message dated "Thu, 13 Jul 2023 18:59:31 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2904259.1689265960.1@sss.pgh.pa.us> Date: Thu, 13 Jul 2023 12:32:40 -0400 Message-ID: <2904260.1689265960@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Pavel Luzanov writes: > On 13.07.2023 18:01, Tom Lane wrote: >> That does not seem right. Is it impossible for pam.set_option >> to be false? Even if it is, should this code assume that? > For versions before 16, including one role to another automatically > gives possibility to issue SET ROLE. Right, -ENOCAFFEINE. > IMO, the only question is whether it is correct to show IMPLICIT and > SET options in versions where they are not actually present > in pg_auth_members, but can be determined. Hmm, that's definitely a judgment call. You could argue that it's useful and consistent, but also that it's confusing to somebody who's not familiar with the new terminology. On balance I'd lean to showing them, but I won't fight hard for that viewpoint. regards, tom lane