pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: eshkinkot@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15006: "make check" error if current user is "user"
Date: Wed, 17 Jan 2018 19:21:03 -0500
Message-ID: <3568.1516234863@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwZpiOqt0hQ5OZX93V8hTNDhzW2Xxca-B0sic23f1eR28A@mail.gmail.com>
References: <20180111125319.1423.23692@wrigleys.postgresql.org>
	<d67a0d73-fbc4-f0b3-a5fd-eb1fcb42b555@2ndquadrant.com>
	<CAKFQuwZpiOqt0hQ5OZX93V8hTNDhzW2Xxca-B0sic23f1eR28A@mail.gmail.com>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Wed, Jan 17, 2018 at 2:58 PM, Tomas Vondra <tomas.vondra@2ndquadrant.com>
> 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




view thread (11+ messages)  latest in thread

Message-ID: <3568.1516234863@sss.pgh.pa.us>
Permalink:  ../3568.1516234863@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3568.1516234863@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, tomas.vondra@2ndquadrant.com, eshkinkot@gmail.com
  Subject: Re: BUG #15006: "make check" error if current user is "user"
  In-Reply-To: <3568.1516234863@sss.pgh.pa.us>
  References: <20180111125319.1423.23692@wrigleys.postgresql.org> <d67a0d73-fbc4-f0b3-a5fd-eb1fcb42b555@2ndquadrant.com> <CAKFQuwZpiOqt0hQ5OZX93V8hTNDhzW2Xxca-B0sic23f1eR28A@mail.gmail.com> <3568.1516234863@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