Re: Executing External Programs

Поиск
Список
Период
Сортировка
От greg@turnstep.com
Тема Re: Executing External Programs
Дата
Msg-id 376a7772f56f12ab3597e09bf90ab7f6@biglumber.com
обсуждение исходный текст
Ответ на Executing External Programs  ("Andrew Brink" <abrink@netstandard.net>)
Список pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



> Is there a way (maybe creating a function) to execute an external program
> from within postgre with a query?

You will need to create a function written in a procedural language. The best
ones to do this is probably PL/Tcl or PL/Perl. Both come bundled with Postgres,
and are fairly easy to learn and use, especially if you have tcl or perl experience.

Information on installing languages:
http://www.postgresql.org/docs/view.php?version=7.3&file=xplang-install.html

Information on PL/Tcl:
http://www.postgresql.org/docs/view.php?version=7.3&file=pltcl.html
(you probably want "untrusted": PL/TclU)

Information on PL/Perl:
http://www.postgresql.org/docs/view.php?version=7.3&file=plperl.html

Again, you may need the "untrusted" version, PL/PerlU:
http://www.postgresql.org/docs/view.php?version=7.3&file=plperl-trusted.html


- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200305200935
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE+yjKQvJuQZxSWSsgRAo1WAKCw9UyE5lrqAnm+erspeRmr5BDwcwCg/PTP
uet5zwqP1/ZTvN1+8za5SNI=
=tc3u
-----END PGP SIGNATURE-----



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

Предыдущее
От: javier garcia - CEBAS
Дата:
Сообщение: add a constraint to specify NOT NULL values
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: add a constraint to specify NOT NULL values