]> granicus.if.org Git - postgresql/blob - contrib/ltree_plpython/ltree_plpython3u--1.0.sql
Fix out-of-tree build for transform modules.
[postgresql] / contrib / ltree_plpython / ltree_plpython3u--1.0.sql
1 /* contrib/ltree_plpython/ltree_plpython3u--1.0.sql */
2
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "CREATE EXTENSION ltree_plpython3u" to load this file. \quit
5
6 CREATE FUNCTION ltree_to_plpython3(val internal) RETURNS internal
7 LANGUAGE C STRICT IMMUTABLE
8 AS 'MODULE_PATHNAME', 'ltree_to_plpython';
9
10 CREATE TRANSFORM FOR ltree LANGUAGE plpython3u (
11     FROM SQL WITH FUNCTION ltree_to_plpython3(internal)
12 );