gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
750B

  1. /* contrib/hstore_plpython/hstore_plpython3u--1.0.sql */
  2. -- complain if script is sourced in psql, rather than via CREATE EXTENSION
  3. \echo Use "CREATE EXTENSION hstore_plpython3u" to load this file. \quit
  4. CREATE FUNCTION hstore_to_plpython3(val internal) RETURNS internal
  5. LANGUAGE C STRICT IMMUTABLE
  6. AS 'MODULE_PATHNAME', 'hstore_to_plpython';
  7. CREATE FUNCTION plpython3_to_hstore(val internal) RETURNS hstore
  8. LANGUAGE C STRICT IMMUTABLE
  9. AS 'MODULE_PATHNAME', 'plpython_to_hstore';
  10. CREATE TRANSFORM FOR hstore LANGUAGE plpython3u (
  11. FROM SQL WITH FUNCTION hstore_to_plpython3(internal),
  12. TO SQL WITH FUNCTION plpython3_to_hstore(internal)
  13. );
  14. COMMENT ON TRANSFORM FOR hstore LANGUAGE plpython3u IS 'transform between hstore and Python dict';
上海开阖软件有限公司 沪ICP备12045867号-1