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 1ntB41-0006lw-9f for pgsql-hackers@arkaria.postgresql.org; Mon, 23 May 2022 16:37: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 1ntB3y-0005bK-Fd for pgsql-hackers@arkaria.postgresql.org; Mon, 23 May 2022 16:37:46 +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 1ntB3y-0005bB-48 for pgsql-hackers@lists.postgresql.org; Mon, 23 May 2022 16:37:46 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ntB3t-00073u-B8 for pgsql-hackers@postgresql.org; Mon, 23 May 2022 16:37:45 +0000 Received: by mail-pg1-x529.google.com with SMTP id 31so14131689pgp.8 for ; Mon, 23 May 2022 09:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=C59m2YXjagWhS6dpllZcs12ALHMWZhXyFlqwMUF1SHw=; b=Qk0EPmK5YEESB/hc+eFH/uJUNZI+8HR59K7TZUpy0leCUze5nIXTPqWlXjzsFH46Ws FyJw9kMxuCe6GSLrAFCJrHuBsGprz4/PN1IaN37wjvo826IOf5Ey7pdDvfJ2YB0ljRAH 9UhVsJYctOtutA8+NM5Zr+HF7lwoffw7K+3MLQlpWRt49PlBqfnhagP1G4nD5qWTCyr3 EMa2f8SAvhAFWCPjULulGx54/gtxdv61hG4jkaXdPhd+GV2Dbe/NCLLnL+DA4Kk9Bzfb dGThdxSz1geG4aBWhz+zNO9nvY+gzccXD6pK2N1joXvagW+VimHf9iF4cZvmBkO/aOP6 Xh0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=C59m2YXjagWhS6dpllZcs12ALHMWZhXyFlqwMUF1SHw=; b=1vk7+HjS7te9LdlFS61lrCHQZYeXuc8utHftsl63pWUn5dr1FwHm5qQ4m20AMO8PXk AsJew48rQCwtY/ViHgohW3A97FMspv4a4/lQpd8/2q42iPhenlh3SwSJSfnlOoij2c3O plEr4kxVWSQLI6v41/q0m8hdtyuV9C+C/9KIi+sy4YvTvWgRfCJpZSeinZcW5lFQBIVh Lq6vwaSeqjfv7i+Iiz3xaPGix6r37Q6Ie21TETyXy6dRxr35QkKmZxpUfqZ9bPGpKc41 uzBuqdc/EQV3iIND4a7EiC0NnildP0aE/JAwVALE8SfZu32Lcgvn2qDfjh47gq5aSZCu ft+g== X-Gm-Message-State: AOAM531u8JcAGD48rkTh545SehTBQXytX26GJOsdsKVmwwKcb08Qipf0 wBWdK5yeRGqy2m2CtS+D4P0= X-Google-Smtp-Source: ABdhPJyob99Uvp11ZTd42LCdCqjevXC3wckqKwWrj/7r/5nTmZ0ZmxNfjBanL3NVy0Ptk+wDOeMZ4g== X-Received: by 2002:a63:86c2:0:b0:3f9:f28d:8211 with SMTP id x185-20020a6386c2000000b003f9f28d8211mr10412538pgd.192.1653323859133; Mon, 23 May 2022 09:37:39 -0700 (PDT) Received: from nathanxps13 ([50.54.155.70]) by smtp.gmail.com with ESMTPSA id w5-20020a1709027b8500b001619fbb0e6dsm5391523pll.40.2022.05.23.09.37.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 09:37:38 -0700 (PDT) Date: Mon, 23 May 2022 09:37:35 -0700 From: Nathan Bossart To: Shinya Kato Cc: Michael Paquier , =?utf-8?Q?Przemys=C5=82aw?= Sztoch , "David G. Johnston" , Robert Haas , Kyotaro Horiguchi , Daniel Gustafsson , pgsql-hackers@postgresql.org Subject: Re: Add --{no-,}bypassrls flags to createuser Message-ID: <20220523163735.GA938919@nathanxps13> References: <20220425201947.GA2935432@nathanxps13> <4975ec63b73cfe4034867e90edbe16f8@oss.nttdata.com> <20220520214519.GA832375@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, May 23, 2022 at 11:55:43PM +0900, Shinya Kato wrote: > On 2022-05-23 16:29, Michael Paquier wrote: >> May I ask for the addition of tests when one specifies multiple >> switches for --admin and --member? This would check the code path >> where you build a list of role names. You could check fancier string >> patterns, while on it, to look after the use of fmtId(), say with >> role names that include whitespaces or such. > > Thanks! > I changed to the test that describes multiple "-m". > It seems to be working without any problems, how about it? Michael also requested a test for multiple -a switches and for fancier string patterns. Once that is taken care of, I think this can be marked as ready-for-committer. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com