=== Sample Function Code in PostgreSQL ===
==== Creating the Sample Function ====
Inside a database (ex) tigertest):
return(arg2)
’ LANGUAGE ’plr’ STRICT;
===== Calling the Sample Function ====
SELECT * FROM r_max(2,3);
returns
r_max
-------
3
(1 row)
==Installing PL/R on the dbase server==