This commit is contained in:
2020-10-22 21:20:39 +00:00
parent 9dcd888e83
commit 54106205af
1269 changed files with 6449 additions and 7287 deletions

View File

@@ -1,11 +1,17 @@
/* src/pl/plpython/plpython2u--1.0.sql */
/*
* Currently, all the interesting stuff is done by CREATE LANGUAGE.
* Later we will probably "dumb down" that command and put more of the
* knowledge into this script.
*/
CREATE FUNCTION plpython2_call_handler() RETURNS language_handler
LANGUAGE c AS 'MODULE_PATHNAME';
CREATE LANGUAGE plpython2u;
CREATE FUNCTION plpython2_inline_handler(internal) RETURNS void
STRICT LANGUAGE c AS 'MODULE_PATHNAME';
CREATE FUNCTION plpython2_validator(oid) RETURNS void
STRICT LANGUAGE c AS 'MODULE_PATHNAME';
CREATE LANGUAGE plpython2u
HANDLER plpython2_call_handler
INLINE plpython2_inline_handler
VALIDATOR plpython2_validator;
COMMENT ON LANGUAGE plpython2u IS 'PL/Python2U untrusted procedural language';