Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE
Дата
Msg-id AANLkTindCoTf=Num0uiKxKtX=-rrj3aHc=MqWE0uqTUH@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE  (Robert Treat <rob@xzilla.net>)
Список pgsql-hackers
On Mon, Feb 28, 2011 at 06:21, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Treat <rob@xzilla.net> writes:
>> Did anything ever come of this discussion?
>
> I think it's a TODO --- nothing done about it as yet, AFAIR.
>
>> On one of the databases I
>> was upgrading, I ran into a similar problem with roles that are set as
>> roles. The problem seems to stem from pg_dumpall dumping roles in
>> alphabetical order:
>
>> CREATE ROLE asha;
>> ALTER ROLE asha SET role TO 'omniti';
>> .. sometime later ...
>> CREATE ROLE omniti;
>
> That seems like a pretty bizarre thing to do.  Why would you want such a
> setting?

I'm sure there are several. I've seen (and done) this more than once
to ensure that the owner of newly created object is the "shared role"
and not the individual, for example.


--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: wCTE: about the name of the feature
Следующее
От: Anton
Дата:
Сообщение: Re: Native XML