From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Nathan Bossart <nathandbossart(at)gmail(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: createuser --memeber and PG 16 |
Date: | 2023-05-21 15:45:24 |
Message-ID: | 264838.1684683924@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Bruce Momjian <bruce(at)momjian(dot)us> writes:
> On Sun, May 21, 2023 at 08:22:05AM -0700, Nathan Bossart wrote:
>> I've attached a draft patch for this. I also changed --admin to
>> --with-admin.
> If we want to go forward with this, the big question is whether we want
> to get this in before beta1. FYI, the release notes don't mention the
> option names.
+1 for doing it before beta1.
A few comments on the patch:
>> Indicates an existing role that will be automatically added as a member of the new
"Specifies" would be clearer than "indicates" (not your fault, but
let's avoid the passive construction while we are here). Likewise
nearby.
>> + {"member-of", required_argument, NULL, 6},
Why didn't you just translate this as 'g' instead of inventing
a new switch case?
>> - printf(_(" -a, --admin=ROLE this role will be a member of new role with admin\n"
>> + printf(_(" -a, --with-admin=ROLE this role will be a member of new role with admin\n"
I think clearer would be
>> + printf(_(" -a, --with-admin=ROLE ROLE will be a member of new role with admin\n"
Likewise
>> + printf(_(" -g, --member-of=ROLE new role will be a member of ROLE\n"));
(I assume that's what this should say, it's backwards ATM)
and
>> + printf(_(" -m, --with-member=ROLE ROLE will be a member of new role\n"));
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2023-05-21 15:52:34 | Re: PG 16 draft release notes ready |
Previous Message | Bruce Momjian | 2023-05-21 15:34:00 | Re: createuser --memeber and PG 16 |