Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apJaA-0008HT-Ie for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Apr 2016 17:55:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1apJa9-0001TR-MG for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Apr 2016 17:55:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1apJa9-0001TL-78 for pgsql-hackers@postgreSQL.org; Sun, 10 Apr 2016 17:55:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1apJa5-0005z3-T1 for pgsql-hackers@postgreSQL.org; Sun, 10 Apr 2016 17:55:32 +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 u3AHtRJc017336; Sun, 10 Apr 2016 13:55:27 -0400 From: Tom Lane To: Stephen Frost cc: pgsql-hackers@postgreSQL.org Subject: Re: Regression test CREATE USER/ROLE usage In-reply-to: <20160410174259.GX10850@tamriel.snowman.net> References: <8985.1460050231@sss.pgh.pa.us> <20160410174259.GX10850@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Sun, 10 Apr 2016 13:42:59 -0400" Date: Sun, 10 Apr 2016 13:55:27 -0400 Message-ID: <17335.1460310927@sss.pgh.pa.us> 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 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. > 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. +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. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers