Re: Extensions and roles for access administration

Поиск
Список
Период
Сортировка
От Виктор Егоров
Тема Re: Extensions and roles for access administration
Дата
Msg-id CAGnEbogJXQgNkxj-L9Sb+LehY=TdUg7XzCNgf0s2AvD-UbUpZA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Extensions and roles for access administration  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Thanks, this clarifies things for me.

There's DROP ROLE IF EXISTS, which I'm using.

2012/6/22 Tom Lane <tgl@sss.pgh.pa.us>
Roles are not considered to be part of an extension: they really can't
be, since an extension is local to a database while a role is global to
the whole installation.  As per the documentation, you're allowed to do
CREATE ROLE in an extension script but it won't be managed by the
extension mechanism.

Not sure about a better solution to your problem offhand.  It might be
sane for the script to do CREATE ROLE IF NOT EXISTS, if we had that,
which we do not :-(


--
Victor Y. Yegorov

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

Предыдущее
От: Benedict Holland
Дата:
Сообщение: insert select fails inside of function
Следующее
От: Tom Lane
Дата:
Сообщение: Re: insert select fails inside of function