psql: Add missing punctuation in help output
[pgsql.git] / contrib / hstore_plpython / hstore_plpython3u--1.0.sql
blob0b410ab18354c6cdeac299a2b989fb46dddfd8b7
1 /* contrib/hstore_plpython/hstore_plpython3u--1.0.sql */
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "CREATE EXTENSION hstore_plpython3u" to load this file. \quit
6 CREATE FUNCTION hstore_to_plpython3(val internal) RETURNS internal
7 LANGUAGE C STRICT IMMUTABLE
8 AS 'MODULE_PATHNAME', 'hstore_to_plpython';
10 CREATE FUNCTION plpython3_to_hstore(val internal) RETURNS hstore
11 LANGUAGE C STRICT IMMUTABLE
12 AS 'MODULE_PATHNAME', 'plpython_to_hstore';
14 CREATE TRANSFORM FOR hstore LANGUAGE plpython3u (
15     FROM SQL WITH FUNCTION hstore_to_plpython3(internal),
16     TO SQL WITH FUNCTION plpython3_to_hstore(internal)
19 COMMENT ON TRANSFORM FOR hstore LANGUAGE plpython3u IS 'transform between hstore and Python dict';