Re: BUG #4980: Dblink issue

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4980: Dblink issue
Дата
Msg-id 6629.1250172937@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #4980: Dblink issue  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-bugs
Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Aug 12, 2009 at 8:00 AM, Gaurav K Srivastava<gauravgkp@gmail.com> wrote:
>> Please tell me how i make the dblink function available to posuser which is
>> non super user.

> I suspect you want some variant of "GRANT USAGE ON LANGUAGE ...".

C-language functions have to be created by a superuser.  They might be
*used* by a non superuser afterwards, but you have to be superuser to
run the "dblink.sql" script.  I'm fairly sure that GRANT will not
override this.  Since anyone with the power to load arbitrary code into
the backend could make himself a superuser pretty easily, it's a bit
foolish to imagine that granting this privilege to non-superusers
is a good idea.

            regards, tom lane

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: BUG #4980: Dblink issue
Следующее
От: "Juan C. Aragon"
Дата:
Сообщение: postgres crashes after log off ts session using /console