Hello, you have to use plperlu, untrusted plperl regards Pavel Stehule
On Fri, 7 Jan 2005, ON.KG wrote: > Hi! > > Could I use "use", "require" functions in plperl? > > for example, > > CREATE OR REPLACE FUNCTION perl_func (text) > RETURNS real > AS ' > use HTTP::Request; > use HTTP::Headers; > .... > return $value; > ' > LANGUAGE 'plperl'; > > > with me it doesn't work and returns error message > "Query failed: ERROR: creation of function failed: 'require' trapped by > operation mask at (eval 2) line 2. in ..." > > Thanx > > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match > ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html