views:

36

answers:

1

I need to send data via http protocol (GET or POST request) from the function or trigger. Is it possible?

+3  A: 

You could try writing the trigger in PL/Python and use urllib2 to POST.

Kevin
Hmm, it looks like a PL/Perl in untrusted mode (http://www.postgresql.org/docs/8.4/interactive/plperl-trusted.html)...Are there differences in the use of PL/Python and PL/Perl? Both of then must be runned in untrusted mode and thats all? This means that I can use the module IO::Socket or HTTP::Request without any limitations?
im4LF
Yes, that's all.
Frank Heikens