Re: Shell Commands - Mailing list pgsql-general

From Gregory Wood
Subject Re: Shell Commands
Date
Msg-id 047901c2e400$313cdb40$4f89ffcc@eng3
Whole thread Raw
In response to Shell Commands  ("Carl Olivier" <carl@zero-one.co.za>)
List pgsql-general
By default, no. But you can add that functionality if you really need it.
You can either pass shell commands through one of the untrusted languages
(plperlu as one person suggested) or through this PL which specifically
allows you to run shell commands:

http://webmail.postgresql.org/~petere/plsh.html

That said, shell commands will only be executed with the permissions of the
user running PostgreSQL (in most cases "postgres").

Greg

----- Original Message -----
From: "Carl Olivier" <carl@zero-one.co.za>
To: <pgsql-general@postgresql.org>
Sent: Thursday, March 06, 2003 10:21 AM
Subject: [GENERAL] Shell Commands


> Greetings.
>
> OK, so I am going to ask a bad question, but hey, here goes:
>
> In MSSql it is possible to run Shell commands from within Sql via any
> interface (suchg as JDBC) using mechanism MSSql provides....
>
> Is this possiible in POSTGRESql?  I know it is a security hole (through
> which many MS Servers are exploited), but was just wondering!
>
> Anyway, thanks in advance,
>
> Carl Olivier
>
>


pgsql-general by date:

Previous
From: Dennis Gearon
Date:
Subject: Re: Shell Commands
Next
From: Bruce Momjian
Date:
Subject: Re: 7.4?