pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: Shinya Kato <Shinya11.Kato@oss.nttdata.com>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Add --{no-,}bypassrls flags to createuser
Date: Mon, 25 Apr 2022 13:19:47 -0700
Message-ID: <20220425201947.GA2935432@nathanxps13> (raw)
In-Reply-To: <CAKFQuwa7kaFmEMszAAkpy-RiYZjW4M3MGo4-EidExZbOAgwQkg@mail.gmail.com>
References: <850d0579cdad54a37fd777d6b11421ec@oss.nttdata.com>
	<20220415.153341.594036939490942414.horikyota.ntt@gmail.com>
	<CA+TgmoYO090Xkwp--vCo0FGrFZBTG=V7wE3EF5WEAPcrFTpbSg@mail.gmail.com>
	<20220419.105012.1677795152077894444.horikyota.ntt@gmail.com>
	<CA+TgmoaTNwzZ6LXgaMzB03J6iijAPqSys39xHd7e6Fwb__3V1g@mail.gmail.com>
	<YmDdxXPVNR8Km0v/@paquier.xyz>
	<CA+TgmoYeZg5deFv+r-dDvWQLuSOiTNAUbcsx4kY2XhGSeGz7FA@mail.gmail.com>
	<CAKFQuwa7kaFmEMszAAkpy-RiYZjW4M3MGo4-EidExZbOAgwQkg@mail.gmail.com>

On Thu, Apr 21, 2022 at 01:21:57PM -0700, David G. Johnston wrote:
> I'm ok with -m/--member as well (like with --role only one role can be
> specified per switch instance so member, not membership, the later meaning,
> at least for me, the collective).
> 
> That -m doesn't match --role-to is no worse than -g not matching --role, a
> short option seems worthwhile, and the -m (membership) mnemonic should be
> simple to pick-up.
> 
> I don't see the addition of "-name" to the option name being beneficial.
> 
> Yes, the standard doesn't use the "TO" prefix for "ROLE" - but taking that
> liberty for consistency here is very appealing and there isn't another SQL
> clause that it would be confused with.

+1 for "member".  It might not be perfect, but IMO it's the clearest
option.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com





view thread (41+ messages)  latest in thread

Message-ID: <20220425201947.GA2935432@nathanxps13>
Permalink:  ../20220425201947.GA2935432@nathanxps13/
Also on:    postgresql.org/message-id/20220425201947.GA2935432@nathanxps13

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, david.g.johnston@gmail.com, robertmhaas@gmail.com, michael@paquier.xyz, horikyota.ntt@gmail.com, Shinya11.Kato@oss.nttdata.com, daniel@yesql.se
  Subject: Re: Add --{no-,}bypassrls flags to createuser
  In-Reply-To: <20220425201947.GA2935432@nathanxps13>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox