aboutsummaryrefslogtreecommitdiff
path: root/contrib/jsonb_plpython/jsonb_plpythonu--1.0.sql
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-03-07 18:19:56 -0800
committerAndres Freund <andres@anarazel.de>2022-03-07 18:20:20 -0800
commit76a29adee749f41e277459cbf2e47a2ff7777f31 (patch)
tree0686993cab4508002fb2c4b6e23f59de7fe54b77 /contrib/jsonb_plpython/jsonb_plpythonu--1.0.sql
parent5b81703787bfc1e6072c8e37125eba0c5598b807 (diff)
downloadpostgresql-76a29adee749f41e277459cbf2e47a2ff7777f31.tar.gz
postgresql-76a29adee749f41e277459cbf2e47a2ff7777f31.zip
plpython: Remove plpythonu, plpython2u and associated transform extensions.
Since 19252e8ec93 we reject Python 2 during build configuration. Now that the dust on the buildfarm has settled, remove extension variants specific to Python 2. Reviewed-By: Peter Eisentraut <peter@eisentraut.org> Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/20211031184548.g4sxfe47n2kyi55r@alap3.anarazel.de
Diffstat (limited to 'contrib/jsonb_plpython/jsonb_plpythonu--1.0.sql')
-rw-r--r--contrib/jsonb_plpython/jsonb_plpythonu--1.0.sql19
1 files changed, 0 insertions, 19 deletions
diff --git a/contrib/jsonb_plpython/jsonb_plpythonu--1.0.sql b/contrib/jsonb_plpython/jsonb_plpythonu--1.0.sql
deleted file mode 100644
index 3fa89885a63..00000000000
--- a/contrib/jsonb_plpython/jsonb_plpythonu--1.0.sql
+++ /dev/null
@@ -1,19 +0,0 @@
-/* contrib/jsonb_plpython/jsonb_plpythonu--1.0.sql */
-
--- complain if script is sourced in psql, rather than via CREATE EXTENSION
-\echo Use "CREATE EXTENSION jsonb_plpythonu" to load this file. \quit
-
-CREATE FUNCTION jsonb_to_plpython(val internal) RETURNS internal
-LANGUAGE C STRICT IMMUTABLE
-AS 'MODULE_PATHNAME';
-
-CREATE FUNCTION plpython_to_jsonb(val internal) RETURNS jsonb
-LANGUAGE C STRICT IMMUTABLE
-AS 'MODULE_PATHNAME';
-
-CREATE TRANSFORM FOR jsonb LANGUAGE plpythonu (
- FROM SQL WITH FUNCTION jsonb_to_plpython(internal),
- TO SQL WITH FUNCTION plpython_to_jsonb(internal)
-);
-
-COMMENT ON TRANSFORM FOR jsonb LANGUAGE plpythonu IS 'transform between jsonb and Python';