Re: BUG #4980: Dblink issue - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4980: Dblink issue
Date
Msg-id 6629.1250172937@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #4980: Dblink issue  (Robert Haas <robertmhaas@gmail.com>)
List 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 by date:

Previous
From: Robert Haas
Date:
Subject: Re: BUG #4980: Dblink issue
Next
From: "Juan C. Aragon"
Date:
Subject: postgres crashes after log off ts session using /console