Re: [GENERAL] pl/pgsql - Mailing list pgsql-general

From Mike Mascari
Subject Re: [GENERAL] pl/pgsql
Date
Msg-id 19990924050906.23045.rocketmail@web120.yahoomail.com
Whole thread Raw
List pgsql-general
It is my understanding that the answer is no. This is
because pl/pgSQL is a language (if configured) to be
available to all users and access to external
routines,
the filesystem, etc. would be a major security hole,
since each backend runs as user 'postgres'. That's
why Postgres superuser privileges are necessary to
create functions in a language like 'C':

"Only users with Postgres superuser privilege are
permitted to create a function in the 'C' language.
Others may use the 'sql' language or the
created procedural languages."

Hope that helps,

Mike Mascari
mascarim@yahoo.com


--- Paul Kelly <pkelly@virtual.org.uk> wrote:
> hi,
>   is there any way in pl/pgsql to create a function
> that causes postrges to call an external program, or
> to call a function in a C shared lib?
>
> Paul
> ----------------------------------------------
> Paul Kelly        pkelly@virtual.org.uk
> U-NET Internet Noc    Some day now!

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

pgsql-general by date:

Previous
From: "Ross J. Reedstrom"
Date:
Subject: Re: [GENERAL] Naming columns for SQL output ...
Next
From: Marc Blanc
Date:
Subject: source code sgml