Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail
Дата
Msg-id 87oa633gzm.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на 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>)
Ответы Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail  ("Bossart, Nathan" <bossartn@amazon.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #14242: Role with a setconfig "role" setting to a nonexistent role causes pg_upgrade to fail