Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail - Mailing list pgsql-bugs

From Andrew Gierth
Subject Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail
Date
Msg-id 87oa633gzm.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail
Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail
List pgsql-bugs
>>>>> "David" == David G Johnston <david.g.johnston@gmail.com> writes:

 >> > 2. As foo, execute "alter role foo set role = 'foo'"

 David> I'm at a loss to understand what this does when it isn't broken.

ALTER ROLE foo SET role = bar;   will have the effect that when 'foo'
logs in, it will behave as if foo had immediately executed the command
SET ROLE bar;

I don't think this is documented but it has obvious uses.

--
Andrew (irc:RhodiumToad)

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail
Next
From: Tom Lane
Date:
Subject: Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail