Re: PostgreSQL or pl/psSQL equivalent to MS SQL Server's

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: PostgreSQL or pl/psSQL equivalent to MS SQL Server's
Дата
Msg-id Pine.LNX.4.33.0307241130050.25837-100000@css120.ihs.com
обсуждение исходный текст
Ответ на PostgreSQL or pl/psSQL equivalent to MS SQL Server's xp_cmdshell?  (Trent.Mera@PeopleFirst.com)
Список pgsql-sql
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.





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

Предыдущее
От: Trent.Mera@PeopleFirst.com
Дата:
Сообщение: PostgreSQL or pl/psSQL equivalent to MS SQL Server's xp_cmdshell?
Следующее
От: elein
Дата:
Сообщение: Re: obtuse plpgsql function needs