Re: execute system command from storage procedure

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: execute system command from storage procedure
Date: 2007-12-06 17:07:56
Message-ID: 20071206170755.GA16649@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Sabin Coanda <sabin(dot)coanda(at)deuromedia(dot)ro> schrieb:

> Hi there,
>
> Is it possible to execute a system command from a function ? (e.g. bash )

Yes, of course, but you need an untrusted language like pl/perlU oder
plsh. http://plsh.projects.postgresql.org/

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message TJ O'Donnell 2007-12-06 18:48:56 polymorphic functions and domains
Previous Message Erik Jones 2007-12-06 17:05:26 Re: execute system command from storage procedure