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 1qM9Gu-001WTg-Vk for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Jul 2023 15:39:24 +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 1qM9Gt-0076Nr-5A for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Jul 2023 15:39:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qM9Gs-0076NS-Nw; Wed, 19 Jul 2023 15:39:22 +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 1qM9Gp-000Kv0-I3; Wed, 19 Jul 2023 15:39:21 +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 36JFdCsH250361; Wed, 19 Jul 2023 11:39:12 -0400 From: Tom Lane To: Alvaro Herrera cc: Pavel Luzanov , "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: <20230719101328.dcfbbvxjenac7ers@alvherre.pgsql> References: <20230719101328.dcfbbvxjenac7ers@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 19 Jul 2023 12:13:28 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <250359.1689781152.1@sss.pgh.pa.us> Date: Wed, 19 Jul 2023 11:39:12 -0400 Message-ID: <250360.1689781152@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > I tried this out. It looks good to me, and I like it. Not translating > the labels seems correct to me. > +1 for backpatching to 16, given that it's a psql-only change that > pertains to a backend change that was done in the 16 timeframe. Agreed. In the interests of moving things along, I'll take point on getting this committed. > Regarding the controversy of showing SET for previous versions, I think > it's clearer if it's shown, because ultimately what the user really > wants to know is if the role can be SET to; they don't want to have to > learn from memory in which version they can SET because the column is > empty and in which version they have to look for the label. Seems reasonable. I'll go with that interpretation unless there's pretty quick pushback. regards, tom lane