--
-- Execute the following SQL statements to enable PL/Ruby.
--
-- $FreeBSD: ports/databases/postgresql-plruby/files/createlang.sql,v 1.1 2001/06/28 08:52:19 knu Exp $
--

CREATE FUNCTION plruby_call_handler() RETURNS OPAQUE
	AS '/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd8/plruby.so'
	LANGUAGE 'C';

CREATE TRUSTED PROCEDURAL LANGUAGE 'plruby'
	HANDLER plruby_call_handler
	LANCOMPILER 'PL/Ruby';

--
