Re: Create user mapping for role

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Create user mapping for role
Дата
Msg-id 505.1589381135@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Create user mapping for role  (Gerard Weatherby <gerardw@alum.mit.edu>)
Список pgsql-general
Gerard Weatherby <gerardw@alum.mit.edu> writes:
> Can a foreign data wrapper user mapping by created for multiple users via a role? i.e. if bob, sally, and john belong
torole foreigusers, is it possible to do something like 
> Create user mapping for foreignusers server …

You can certainly create a user mapping for a role.  But I think you'll
find that sally et al have to do "SET ROLE foreignusers" to use it.
It's difficult to see a way to avoid that --- after all, if sally is
also a member of foreignuserstoo that also has a mapping, which one
should the system use?

            regards, tom lane



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

Предыдущее
От: "Basques, Bob (CI-StPaul)"
Дата:
Сообщение: RE: Enforcing uniqueness on [real estate/postal] addresses
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Why is it that “aggregate functions are not allowed in FROM clause of their own query level”?