pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: Regression test CREATE USER/ROLE usage
Date: Sun, 10 Apr 2016 14:21:01 -0400
Message-ID: <20160410182100.GY10850@tamriel.snowman.net> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> 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.

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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (3+ messages)

Message-ID: <20160410182100.GY10850@tamriel.snowman.net>
Permalink:  ../20160410182100.GY10850@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20160410182100.GY10850@tamriel.snowman.net

 · 

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

* 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