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 1pnDrM-0001tD-JA for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Apr 2023 07:28:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pnDrK-0005Hz-Ak for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Apr 2023 07:28:38 +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 1pnDrJ-0005Hq-W1 for pgsql-hackers@lists.postgresql.org; Fri, 14 Apr 2023 07:28:38 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pnDrH-002o93-77 for pgsql-hackers@lists.postgresql.org; Fri, 14 Apr 2023 07:28:37 +0000 Received: by mail-pj1-x102b.google.com with SMTP id f2so9076545pjs.3 for ; Fri, 14 Apr 2023 00:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681457312; x=1684049312; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=84u1LNJgjCBZ32yatxLIF/cM4oBuHjQiSuvVw5NTx4Y=; b=pMuVVLtiz7YpvHQYDgiuTuQ6QxNT5x/jPM8b+aFG4UpuUTdnl6r/Osd7+ydx915ahD UvlW5P/8DnYO4Mf0DkomIZPh0YaRzwLRAb+OxSJnpuyYqWI0ErHUnSbFIBLhNUdS85HP wQqqvk4ivVXjsBvzWSQcOAOVCd7R6A5b54VegW8QOVYb+ncCchdJcPrt18hFsfYyUbPf 7RJtCQFKMC9aOS9QUdJhMUH8jCGInGbFDbuSxiaZq35CnLo6wCZenQy0O1N6sPcN/80Q 19DbnV569WZiPAhuqLc7iFAS0nRXBVyVipW6fuUlp8EBNp24YqKgeFzbL43rW1R6n2Au Kp0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681457312; x=1684049312; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=84u1LNJgjCBZ32yatxLIF/cM4oBuHjQiSuvVw5NTx4Y=; b=PrwYQ/UtjxrBkBw/zf5j7I8h6yxQ1btrIap8QCDyRYMXTa50uoHHCR8yqQctyo3x8B 1SSzlYScTTBAf44xn7W4XHmzknrFxzv2cW9TixdGfTK72cJ1bYCXu6XjGECcu2rz11Ys bIzDrDen15Ml5RPmuw/LksfXvQMj8C92w2ICSyzJUZz4oRpgRwUuQ8AxvLRq/swHywnW IjwFPm7kltLJ/NPnTt8wba+sCTRqgU0e+FqWRfCWcBw771KctJQxbA8qCxtI4TQGnxgl kKdcorrZrTXkSA1K3xXuZMN+cIG5S4tWWXi2+6tSlq6In6ef4gWsk1SvZ+D7jgBIk20n /5BA== X-Gm-Message-State: AAQBX9f95yHHx4E36McYx0zNYYv/bmUBx7UkMFcneHF86R7rucEF+PWd U7jtqL4Fxokm3h7mPOqK5Gw= X-Google-Smtp-Source: AKy350bdyLNNeKKP/IUemEYdYrSuOUI0ykjbCrBrBmgJMY8xzEIkvfj/Q3iIUf3BjsDtvT8xB/+D1g== X-Received: by 2002:a17:903:290c:b0:1a6:7fb1:8de7 with SMTP id lh12-20020a170903290c00b001a67fb18de7mr1830651plb.24.1681457312548; Fri, 14 Apr 2023 00:28:32 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id jd17-20020a170903261100b00194c90ca320sm2516558plb.204.2023.04.14.00.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 00:28:32 -0700 (PDT) Date: Fri, 14 Apr 2023 16:28:29 +0900 (JST) Message-Id: <20230414.162829.373160465721252149.horikyota.ntt@gmail.com> To: p.luzanov@postgrespro.ru Cc: david.g.johnston@gmail.com, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, david.zhang@highgo.ca, pgsql-hackers@lists.postgresql.org Subject: Re: psql: Add role's membership options to the \du+ command From: Kyotaro Horiguchi In-Reply-To: References: <1831161.1680703111@sss.pgh.pa.us> User-Agent: Mew version 6.8 on Emacs 27.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sorry for joining in late.. At Thu, 13 Apr 2023 15:44:20 +0300, Pavel Luzanov wrote in > After playing with the \du command, I found that we can't avoid > translation. > All attributes are translatable. Also, two of nine attributes shows in > new line separated format (connection limit and password valid until). Going a bit off-topic here, but I'd like the "infinity" to be translatable... As David-G appears to express concern in upthread, I don't think a direct Japanese translation from "rolename from rolename" works well, as the "from" needs accompanying verb. I, as a Japanese speaker, I prefer a more non-sentence-like notation, similar to David's suggestion but with slight differences: "pg_read_all_stats (grantor: postgres, inherit, set)" This is easily translated into Japanese. "pg_read_all_stats (付与者: postgres、継承、設定)" Come to think of this, I recalled a past discussion in which we concluded that translating punctuation marks appearing between a variable number of items within list expressions should be avoided... Thus, I'd like to propose to use an ACL-like notation, which doesn't need translation. ..| Mamber of | ..| pg_read_server_files=ais/horiguti,pg_execute_server_program=/postgres | If we'd like, but not likely, we might want to provide a parallel function to aclexplode for this notation. =# select memberofexplode('pg_read_server_files=ais/horiguti,pg_execute_server_program=/postgres'); privilege | grantor | admin | inherit | set ---------------------------+----------+-------+---------+------- pg_read_server_files | horiguti | true | true | true pg_execute_server_programs | postgres | false | false | false regards. -- Kyotaro Horiguchi NTT Open Source Software Center