see Trusted and Untrusted PL/Perl
I was able to get this to work using plperlu after running CREATE EXTENSION plperlu;
pojCREATE OR REPLACE FUNCTION get(character varying) RETURNS json AS $BODY$ use warnings; use strict; use LWP::Simple; my $content = get($_[0]); $content =~ s/ /%20/g; return $content; $BODY$ LANGUAGE plperlu VOLATILE COST 100;
In reply to Re^3: plperl (postgreSQL perl) get url function
by poj
in thread plperl (postgreSQL perl) get url function
by marchello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |