1 /* contrib/hstore_plperl/hstore_plperlu--1.0.sql */
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "CREATE EXTENSION hstore_plperlu" to load this file. \quit
6 CREATE FUNCTION hstore_to_plperlu(val internal) RETURNS internal
7 LANGUAGE C STRICT IMMUTABLE
8 AS 'MODULE_PATHNAME', 'hstore_to_plperl';
10 CREATE FUNCTION plperlu_to_hstore(val internal) RETURNS hstore
11 LANGUAGE C STRICT IMMUTABLE
12 AS 'MODULE_PATHNAME', 'plperl_to_hstore';
14 CREATE TRANSFORM FOR hstore LANGUAGE plperlu (
15 FROM SQL WITH FUNCTION hstore_to_plperlu(internal),
16 TO SQL WITH FUNCTION plperlu_to_hstore(internal)