Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebxx6-00021x-Gl for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jan 2018 00:21:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebxx5-00042B-N2 for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jan 2018 00:21:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ebxx5-00041w-ED for pgsql-bugs@lists.postgresql.org; Thu, 18 Jan 2018 00:21:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ebxx3-00043A-12 for pgsql-bugs@lists.postgresql.org; Thu, 18 Jan 2018 00:21:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w0I0L3V6003569; Wed, 17 Jan 2018 19:21:03 -0500 From: Tom Lane To: "David G. Johnston" cc: Tomas Vondra , eshkinkot@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15006: "make check" error if current user is "user" In-reply-to: References: <20180111125319.1423.23692@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Wed, 17 Jan 2018 15:11:12 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3567.1516234863.1@sss.pgh.pa.us> Date: Wed, 17 Jan 2018 19:21:03 -0500 Message-ID: <3568.1516234863@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > On Wed, Jan 17, 2018 at 2:58 PM, Tomas Vondra > wrote: >> But maybe we could/should fix it anyway? Most regression tests switched >> to roles prefixed with regress_* so why not to do the same here? > The point of the test seems to be to ensure that the special system > keywords, when quoted, are allowed to be used for role names. Exactly. Changing the names ruins the point of the test. > So the > choice is to make the test conditional (if the role previously exists > neither create or drop it - and since it existed it doesn't seem like its a > problem to create it anyway) or to simply not bother testing "user" > figuring that the other two roles suffice for testing this behavior. I wouldn't have a big problem with just dropping this whole test stanza. It's an out-and-out violation of our rule against not creating rolenames not starting with "regress_", and it's not testing anything that seems especially likely to break. regards, tom lane