Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMkkL-0008Di-9T for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Jul 2016 23:36:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bMkkK-0003NS-Mh for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Jul 2016 23:36:16 +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 1bMkkI-0003N4-Sx for pgsql-bugs@postgresql.org; Mon, 11 Jul 2016 23:36:15 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bMkkB-0008PX-Mc for pgsql-bugs@postgresql.org; Mon, 11 Jul 2016 23:36:13 +0000 Received: from localhost ([127.0.0.1]:27353 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bMkk9-000920-Ar; Mon, 11 Jul 2016 23:36:05 +0000 From: Andrew Gierth To: Tom Lane Cc: "David G. Johnston" , "bossartn\@amazon.com" , "pgsql-bugs\@postgresql.org" Subject: Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail In-Reply-To: <15762.1468279332@sss.pgh.pa.us> (Tom Lane's message of "Mon, 11 Jul 2016 19:22:12 -0400") Message-ID: <87k2gr3g60.fsf@news-spur.riddles.org.uk> References: <20160711223641.1426.86096@wrigleys.postgresql.org> <14434.1468277346@sss.pgh.pa.us> <87oa633gzm.fsf@news-spur.riddles.org.uk> <15762.1468279332@sss.pgh.pa.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Tue, 12 Jul 2016 00:36:05 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org >>>>> "Tom" == Tom Lane writes: > Andrew Gierth writes: >> I don't think this is documented but it has obvious uses. Tom> Does it? For ALTER ROLE, there's actually a question that comes up not all that infrequently on irc: "how do I arrange things so that what user 'foo' does, by default, ends up owned by group role 'bar'" I'm pretty sure I have never actually suggested that anyone do it this way (because I had no idea it worked until I tried it just now), but I can see the use case. Tom> If the named role is the same as the actual role, then it's Tom> useless. If they're different, it seems at best confusing. In Tom> the context of ALTER DATABASE SET, it seems both confusing and Tom> possibly a security hazard. It _appears_ to silently fail if the user logging in is not actually a member of the specified role. I have not looked at the code. -- Andrew (irc:RhodiumToad) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs