mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
plpython: Remove plpythonu, plpython2u and associated transform extensions.
Since 19252e8ec9
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
This commit is contained in:
@ -6,8 +6,8 @@ OBJS = \
|
||||
hstore_plpython.o
|
||||
PGFILEDESC = "hstore_plpython - hstore transform for plpython"
|
||||
|
||||
EXTENSION = hstore_plpythonu hstore_plpython2u hstore_plpython3u
|
||||
DATA = hstore_plpythonu--1.0.sql hstore_plpython2u--1.0.sql hstore_plpython3u--1.0.sql
|
||||
EXTENSION = hstore_plpython3u
|
||||
DATA = hstore_plpython3u--1.0.sql
|
||||
|
||||
REGRESS = hstore_plpython
|
||||
REGRESS_PLPYTHON3_MANGLE := $(REGRESS)
|
||||
|
@ -1,19 +0,0 @@
|
||||
/* contrib/hstore_plpython/hstore_plpython2u--1.0.sql */
|
||||
|
||||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
||||
\echo Use "CREATE EXTENSION hstore_plpython2u" to load this file. \quit
|
||||
|
||||
CREATE FUNCTION hstore_to_plpython2(val internal) RETURNS internal
|
||||
LANGUAGE C STRICT IMMUTABLE
|
||||
AS 'MODULE_PATHNAME', 'hstore_to_plpython';
|
||||
|
||||
CREATE FUNCTION plpython2_to_hstore(val internal) RETURNS hstore
|
||||
LANGUAGE C STRICT IMMUTABLE
|
||||
AS 'MODULE_PATHNAME', 'plpython_to_hstore';
|
||||
|
||||
CREATE TRANSFORM FOR hstore LANGUAGE plpython2u (
|
||||
FROM SQL WITH FUNCTION hstore_to_plpython2(internal),
|
||||
TO SQL WITH FUNCTION plpython2_to_hstore(internal)
|
||||
);
|
||||
|
||||
COMMENT ON TRANSFORM FOR hstore LANGUAGE plpython2u IS 'transform between hstore and Python dict';
|
@ -1,6 +0,0 @@
|
||||
# hstore_plpython2u extension
|
||||
comment = 'transform between hstore and plpython2u'
|
||||
default_version = '1.0'
|
||||
module_pathname = '$libdir/hstore_plpython2'
|
||||
relocatable = true
|
||||
requires = 'hstore,plpython2u'
|
@ -1,19 +0,0 @@
|
||||
/* contrib/hstore_plpython/hstore_plpythonu--1.0.sql */
|
||||
|
||||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
||||
\echo Use "CREATE EXTENSION hstore_plpythonu" to load this file. \quit
|
||||
|
||||
CREATE FUNCTION hstore_to_plpython(val internal) RETURNS internal
|
||||
LANGUAGE C STRICT IMMUTABLE
|
||||
AS 'MODULE_PATHNAME';
|
||||
|
||||
CREATE FUNCTION plpython_to_hstore(val internal) RETURNS hstore
|
||||
LANGUAGE C STRICT IMMUTABLE
|
||||
AS 'MODULE_PATHNAME';
|
||||
|
||||
CREATE TRANSFORM FOR hstore LANGUAGE plpythonu (
|
||||
FROM SQL WITH FUNCTION hstore_to_plpython(internal),
|
||||
TO SQL WITH FUNCTION plpython_to_hstore(internal)
|
||||
);
|
||||
|
||||
COMMENT ON TRANSFORM FOR hstore LANGUAGE plpythonu IS 'transform between hstore and Python dict';
|
@ -1,6 +0,0 @@
|
||||
# hstore_plpythonu extension
|
||||
comment = 'transform between hstore and plpythonu'
|
||||
default_version = '1.0'
|
||||
module_pathname = '$libdir/hstore_plpython2'
|
||||
relocatable = true
|
||||
requires = 'hstore,plpythonu'
|
Reference in New Issue
Block a user