Re: xp_cmdshell equivalent

Поиск
Список
Период
Сортировка
От joseph speigle
Тема Re: xp_cmdshell equivalent
Дата
Msg-id 20031220040931.GA25061@www.sirfsup.com
обсуждение исходный текст
Ответ на xp_cmdshell equivalent  (Godshall Michael <Michael_Godshall@gmachs.com>)
Список pgsql-novice
On Fri, Dec 19, 2003 at 05:10:53PM -0500, Godshall Michael wrote:
>
> 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-sql/2003-07/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
languageis. 
--
joe speigle

В списке pgsql-novice по дате отправления:

Предыдущее
От: Godshall Michael
Дата:
Сообщение: xp_cmdshell equivalent
Следующее
От: "Chris"
Дата:
Сообщение: postgres logs