Run external command as part of an sql statement ?

Поиск
Список
Период
Сортировка
От David Gauthier
Тема Run external command as part of an sql statement ?
Дата
Msg-id CAMBRECD0cW4mvg_ZfRX=qW8iJanCVjQU+j=Yx5J7jbn4uBSZ2Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: Run external command as part of an sql statement ?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Run external command as part of an sql statement ?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Hi:

At the psql prompt, I can do something like...
   "select  \! id -nu"
...to get the uid of whoever's running psql.  
 
I want to be able to run a shell command like this from within a stored procedure.  Is there a way to do this ?

Thanks

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

Предыдущее
От: "a"
Дата:
Сообщение: How to manipulate tuples in C functions?
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Run external command as part of an sql statement ?