1 /* contrib/bool_plperl/bool_plperl--1.0.sql */
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "CREATE EXTENSION bool_plperl" to load this file. \quit
6 CREATE FUNCTION bool_to_plperl(val internal) RETURNS internal
7 LANGUAGE C STRICT IMMUTABLE
10 CREATE FUNCTION plperl_to_bool(val internal) RETURNS bool
11 LANGUAGE C STRICT IMMUTABLE
14 CREATE TRANSFORM FOR bool LANGUAGE plperl (
15 FROM SQL WITH FUNCTION bool_to_plperl(internal),
16 TO SQL WITH FUNCTION plperl_to_bool(internal)
19 COMMENT ON TRANSFORM FOR bool LANGUAGE plperl IS 'transform between bool and Perl';