codekingpro/portable-devtools
115k
1/* contrib/hstore_plpython/hstore_plpython3u--1.0.sql */2 3-- complain if script is sourced in psql, rather than via CREATE EXTENSION4\echo Use "CREATE EXTENSION hstore_plpython3u" to load this file. \quit5 6CREATE FUNCTION hstore_to_plpython3(val internal) RETURNS internal7LANGUAGE C STRICT IMMUTABLE8AS 'MODULE_PATHNAME', 'hstore_to_plpython';9 10CREATE FUNCTION plpython3_to_hstore(val internal) RETURNS hstore11LANGUAGE C STRICT IMMUTABLE12AS 'MODULE_PATHNAME', 'plpython_to_hstore';13 14CREATE TRANSFORM FOR hstore LANGUAGE plpython3u (15 FROM SQL WITH FUNCTION hstore_to_plpython3(internal),16 TO SQL WITH FUNCTION plpython3_to_hstore(internal)17);18 19COMMENT ON TRANSFORM FOR hstore LANGUAGE plpython3u IS 'transform between hstore and Python dict';20 