X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1C8F9D1C4B7 for ; Thu, 24 Jul 2003 17:45:26 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 56006-10 for ; Thu, 24 Jul 2003 14:44:41 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id D7325D1C4D0 for ; Thu, 24 Jul 2003 14:45:23 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h6OHfuT5018468; Thu, 24 Jul 2003 11:41:56 -0600 (MDT) Date: Thu, 24 Jul 2003 11:31:54 -0600 (MDT) From: "scott.marlowe" To: Cc: Subject: Re: PostgreSQL or pl/psSQL equivalent to MS SQL Server's In-Reply-To: <6032E183529AB142929BB11B0CC23611096EB4DC@a013> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/362 X-Sequence-Number: 14476 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.