Re: Shell Commands

From: "Gregory Wood" <gregw(at)com-stock(dot)com>
To: <carl(at)zero-one(dot)co(dot)za>
Cc: "PostgreSQL-General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Shell Commands
Date: 2003-03-06 16:48:18
Message-ID: 047901c2e400$313cdb40$4f89ffcc@eng3
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)zero-one(dot)co(dot)za>
To: <pgsql-general(at)postgresql(dot)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
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-03-06 16:48:25 Re: 7.4?
Previous Message Tom Lane 2003-03-06 16:47:23 Re: 7.4?