From: | Mike Mascari <mascarim(at)yahoo(dot)com> |
---|---|
To: | Paul Kelly <pkelly(at)virtual(dot)org(dot)uk> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: [GENERAL] pl/pgsql |
Date: | 1999-09-24 05:09:06 |
Message-ID: | 19990924050906.23045.rocketmail@web120.yahoomail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)yahoo(dot)com
--- Paul Kelly <pkelly(at)virtual(dot)org(dot)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(at)virtual(dot)org(dot)uk
> U-NET Internet Noc Some day now!
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Adriaan Joubert | 1999-09-24 05:23:18 | Re: [HACKERS] Re: [GENERAL] Update of bitmask type |
Previous Message | Ross J. Reedstrom | 1999-09-24 04:28:13 | Re: [GENERAL] Naming columns for SQL output ... |