Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMkNj-0006OZ-EX for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Jul 2016 23:12:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bMkNi-0007pv-I3 for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Jul 2016 23:12:54 +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 1bMkNh-0007pk-UT for pgsql-bugs@postgresql.org; Mon, 11 Jul 2016 23:12:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bMkNf-0007ts-EQ for pgsql-bugs@postgresql.org; Mon, 11 Jul 2016 23:12:52 +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 u6BNCnNl015325; Mon, 11 Jul 2016 19:12:49 -0400 From: Tom Lane To: "David G. Johnston" cc: "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: References: <20160711223641.1426.86096@wrigleys.postgresql.org> <14434.1468277346@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Mon, 11 Jul 2016 19:03:22 -0400" Date: Mon, 11 Jul 2016 19:12:49 -0400 Message-ID: <15324.1468278769@sss.pgh.pa.us> 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 "David G. Johnston" writes: >> bossartn@amazon.com writes: >>> 2. As foo, execute "alter role foo set role = 'foo'" > I'm at a loss to understand what this does when it isn't broken. Assuming > valid grants does the user become the assigned role upon session startup? As written it does nothing much. But "SET ROLE" is defined by the SQL standard, and what I'd expect this to do is execute an implicit SET ROLE at login. Whether that's a good idea is pretty debatable, though, thus my question whether we'd not be better off to forbid this. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs