From 7d38e9af5b95ee000ee761bfdfc9883158706d63 Mon Sep 17 00:00:00 2001
From: Akinori MUSHA <knu@FreeBSD.org>
Date: Thu, 28 Jun 2001 08:52:19 +0000
Subject: Add postgresql-plruby, PL/Ruby procedural language for the PostgreSQL
 database system.

---
 databases/postgresql-plruby/files/createlang.sql | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 databases/postgresql-plruby/files/createlang.sql

(limited to 'databases/postgresql-plruby/files/createlang.sql')

diff --git a/databases/postgresql-plruby/files/createlang.sql b/databases/postgresql-plruby/files/createlang.sql
new file mode 100644
index 000000000000..0641d1c1e378
--- /dev/null
+++ b/databases/postgresql-plruby/files/createlang.sql
@@ -0,0 +1,15 @@
+--
+-- Execute the following SQL statements to enable PL/Ruby.
+--
+-- $FreeBSD$
+--
+
+CREATE FUNCTION plruby_call_handler() RETURNS OPAQUE
+	AS '!!PLRUBY_SO!!'
+	LANGUAGE 'C';
+
+CREATE TRUSTED PROCEDURAL LANGUAGE 'plruby'
+	HANDLER plruby_call_handler
+	LANCOMPILER 'PL/Ruby';
+
+--
-- 
cgit v1.2.3

