dbTalk Databases Forums  

xp_cmdshell equivalent

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss xp_cmdshell equivalent in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Godshall Michael
 
Posts: n/a

Default xp_cmdshell equivalent - 12-19-2003 , 04:10 PM






Hi,

Is their equivalent to SQL Servers xp_cmdshell that can be called in plpsql
or plperl function?


Michael Godshall
GMAC Global Relocation <http://www.gmacglobalrelocation.com/> Services
900 So. Frontage Road
Woodridge, IL 60517
630-427-2070 office
630-972-2287 fax

michael_godshall (AT) gmachs (DOT) com <mailto:michael_godshall (AT) gmachs (DOT) com>




Reply With Quote
  #2  
Old   
joseph speigle
 
Posts: n/a

Default Re: xp_cmdshell equivalent - 12-19-2003 , 10:09 PM






On Fri, Dec 19, 2003 at 05:10:53PM -0500, Godshall Michael wrote:
Quote:
Is their equivalent to SQL Servers xp_cmdshell that can be called in plpsql
or plperl function?

Michael Godshall
A response on the net at http://archives.postgresql.org/pgsql...7/msg00362.php says just :

QUOTE

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.

END QUOTE

My guess (only a guess) is that the call would then vary per language, so in C it might be int system(const char * cmdstring) and so on. I found on google http://www.varlena.com/varlena/GeneralBits/32.html referencing what a trusted language is.
--
joe speigle

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.