summaryrefslogtreecommitdiff
path: root/doc/src/sgml/ref/create_transform.sgml
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-03-07 18:30:57 -0800
committerAndres Freund <andres@anarazel.de>2022-03-07 18:30:57 -0800
commit4228cabb72bb57e1df4c9d92613f1fcd4baadd5a (patch)
tree439d031a699c7af5a8de2cdf7a8c24a05773e073 /doc/src/sgml/ref/create_transform.sgml
parent9b7e24a2cb37fb52af13219f625cd719e364a346 (diff)
plpython: Adjust docs after removal of Python 2 support.
Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/20211031184548.g4sxfe47n2kyi55r@alap3.anarazel.de
Diffstat (limited to 'doc/src/sgml/ref/create_transform.sgml')
-rw-r--r--doc/src/sgml/ref/create_transform.sgml6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/create_transform.sgml b/doc/src/sgml/ref/create_transform.sgml
index 3f81dc6bba2..34bdc60e130 100644
--- a/doc/src/sgml/ref/create_transform.sgml
+++ b/doc/src/sgml/ref/create_transform.sgml
@@ -156,11 +156,11 @@ CREATE [ OR REPLACE ] TRANSFORM FOR <replaceable>type_name</replaceable> LANGUAG
<para>
To create a transform for type <type>hstore</type> and language
- <literal>plpythonu</literal>, first set up the type and the language:
+ <literal>plpython3u</literal>, first set up the type and the language:
<programlisting>
CREATE TYPE hstore ...;
-CREATE EXTENSION plpythonu;
+CREATE EXTENSION plpython3u;
</programlisting>
Then create the necessary functions:
<programlisting>
@@ -174,7 +174,7 @@ AS ...;
</programlisting>
And finally create the transform to connect them all together:
<programlisting>
-CREATE TRANSFORM FOR hstore LANGUAGE plpythonu (
+CREATE TRANSFORM FOR hstore LANGUAGE plpython3u (
FROM SQL WITH FUNCTION hstore_to_plpython(internal),
TO SQL WITH FUNCTION plpython_to_hstore(internal)
);