pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: Regression test CREATE USER/ROLE usage
Date: Sun, 10 Apr 2016 13:55:27 -0400
Message-ID: <17335.1460310927@sss.pgh.pa.us> (raw)
In-Reply-To: <20160410174259.GX10850@tamriel.snowman.net>
References: <E1anz15-0007py-DX@gemulon.postgresql.org>
	<8985.1460050231@sss.pgh.pa.us>
	<20160410174259.GX10850@tamriel.snowman.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Stephen Frost <sfrost@snowman.net> 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



view thread (3+ messages)  latest in thread

Message-ID: <17335.1460310927@sss.pgh.pa.us>
Permalink:  ../17335.1460310927@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17335.1460310927@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sfrost@snowman.net, pgsql-hackers@postgreSQL.org
  Subject: Re: Regression test CREATE USER/ROLE usage
  In-Reply-To: <17335.1460310927@sss.pgh.pa.us>
  References: <E1anz15-0007py-DX@gemulon.postgresql.org> <8985.1460050231@sss.pgh.pa.us> <20160410174259.GX10850@tamriel.snowman.net> <17335.1460310927@sss.pgh.pa.us>

* 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