pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Trent.Mera@PeopleFirst.com
Cc: pgsql-sql@postgresql.org
Subject: Re: PostgreSQL or pl/psSQL equivalent to MS SQL Server's
Date: Thu, 24 Jul 2003 11:31:54 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0307241130050.25837-100000@css120.ihs.com> (raw)
In-Reply-To: <6032E183529AB142929BB11B0CC23611096EB4DC@a013>

On Thu, 24 Jul 2003 Trent.Mera@PeopleFirst.com wrote:

> Does anyone know of the PostgreSQL or pl/psSQL equivalent to MS SQL Server's
> xp_cmdshell?   This is the command that allows you issue command-line
> statements from within SQL, e.g., you would do xp_cmdshell 'dir c:\' if you
> wanted to see the contents of the c: drive.

That can only be done inside an untrusted procedural language.  plpgsql is 
trusted, so it can't do that type of thing.

C, pltclu, plprelu, and, as of 7.4 plpython will let you do that.






view thread (3+ messages)

Message-ID: <Pine.LNX.4.33.0307241130050.25837-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0307241130050.25837-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0307241130050.25837-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: scott.marlowe@ihs.com, Trent.Mera@PeopleFirst.com
  Subject: Re: PostgreSQL or pl/psSQL equivalent to MS SQL Server's
  In-Reply-To: <Pine.LNX.4.33.0307241130050.25837-100000@css120.ihs.com>
  References: <6032E183529AB142929BB11B0CC23611096EB4DC@a013> <Pine.LNX.4.33.0307241130050.25837-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox