Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apK0E-0000nN-0i for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Apr 2016 18:22:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1apK0C-0005BS-Hn for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Apr 2016 18:22:28 +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 1apJyr-0003hl-Mm for pgsql-hackers@postgreSQL.org; Sun, 10 Apr 2016 18:21:05 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apJyo-0004bu-3o for pgsql-hackers@postgreSQL.org; Sun, 10 Apr 2016 18:21:04 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 14DDC5F794; Sun, 10 Apr 2016 14:21:01 -0400 (EDT) Date: Sun, 10 Apr 2016 14:21:01 -0400 From: Stephen Frost To: Tom Lane Cc: pgsql-hackers@postgreSQL.org Subject: Re: Regression test CREATE USER/ROLE usage Message-ID: <20160410182100.GY10850@tamriel.snowman.net> References: <8985.1460050231@sss.pgh.pa.us> <20160410174259.GX10850@tamriel.snowman.net> <17335.1460310927@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DtJW00gg9Uj+27As" Content-Disposition: inline In-Reply-To: <17335.1460310927@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 14:17:21 up 47 days, 15:10, 14 users, load average: 0.04, 0.08, 0.07 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --DtJW00gg9Uj+27As Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > * Tom Lane (tgl@sss.pgh.pa.us) wrote: > >> broken that way as rowsecurity.sql, which is (still) creating roles > >> named "alice" and "bob", but it's not acceptable like this. >=20 > > Attached is a patch to fix all of the role usage in rowsecurity.sql > > (I believe, feel free to let me know if there's anything else). In > > particular, all of the roles are changed to begin with 'regress_', and > > they are all now created with NOLOGIN. >=20 > +1 for the general idea, although there's something to be said for > using names like 'regress_alice' and 'regress_bob' in this context. > 'regress_user1' and 'regress_user2' are awfully gray and same-y, > and therefore a bit error-prone IMO. Fair enough. I'll adjust the ending '_userX' to be actual names along the lines of 'alice', 'bob', 'carol', 'dave', 'eve', 'frank', etc. (List pulled from https://en.wikipedia.org/wiki/Alice_and_Bob). Thanks! Stephen --DtJW00gg9Uj+27As Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXCpmMAAoJEO1sijiDR2RV3FoQAIlXkIaB5+OilHaI4ychNfjP HqXa2iFhviVhuzEiHLw8BdHZrmu/tND8nSiJwJ+EVrJaLTmmHfvH8jphMJKcwC6y xyJqkhB7wQd0hGzjqGKvGDN89XZiJhWcLPr/1EVsCLwURdDSTyQlw95Hw7BQH+zI sQgZb+wdH9pdMz5+OFZ5ij0YNMEu7L9BT9sA5zRNX/ZapIOoKnQtj1DCwlwu9WPH 9lQcc03tReWOafcUTXqsibDjKqclobwTUAialFOg96zPIRDSLLxVI8QkTHujUkH+ 6TCUdcBH4aUsxX+yTZtqDgbDqcGmRHDznOfDPV65y6wF2ZF3lNc/QGwOH/YoiuPx YB6Gr+iFU7+WPdY+wkQrLW+V1hWhH2QCrOD1vHtGDOtPQEnShiN4ePGWCkN3NUm+ 1nlPc/hIF6Jah+FtdoMS8j/dDX6L7AdHFRSETZS12jYrkIkGWoKwWmm+9u8tmP+y i3DYnEA8igJe5NQCOtpB6UXImymsyhf9pLqNbI6lQGD96b5cP2DFEBMTGlnUpGxN gUuzdXJGlaHSnyu+HpLbnrvtnDmM6ZJje5l0GFkQzh5DsdNWHrSzb6QHfTTBOr31 tyWv20b8++KbUpAIzKV2Xhd9h2N+3pf+9tsgpbaHAQiCQzx910TEfV96zmc+kHRc PhM1fZiOtD3NZLz3jbVK =tjJg -----END PGP SIGNATURE----- --DtJW00gg9Uj+27As--