Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4228cab

Browse files
committed
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
1 parent9b7e24a commit4228cab

File tree

7 files changed

+71
-257
lines changed

7 files changed

+71
-257
lines changed

‎doc/src/sgml/hstore.sgml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -943,12 +943,8 @@ ALTER TABLE tablename ALTER hstorecol TYPE hstore USING hstorecol || '';
943943
and <literal>hstore_plperlu</literal>, for trusted and untrusted PL/Perl.
944944
If you install these transforms and specify them when creating a
945945
function, <type>hstore</type> values are mapped to Perl hashes. The
946-
extensions for PL/Python are
947-
called <literal>hstore_plpythonu</literal>, <literal>hstore_plpython2u</literal>,
948-
and <literal>hstore_plpython3u</literal>
949-
(see <xref linkend="plpython-python23"/> for the PL/Python naming
950-
convention). If you use them, <type>hstore</type> values are mapped to
951-
Python dictionaries.
946+
extension for PL/Python is called <literal>hstore_plpython3u</literal>.
947+
If you use it, <type>hstore</type> values are mapped to Python dictionaries.
952948
</para>
953949

954950
<caution>

‎doc/src/sgml/json.sgml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -716,12 +716,9 @@ UPDATE table_name SET jsonb_field[1]['a'] = '1';
716716
</para>
717717

718718
<para>
719-
The extensions for PL/Python are called <literal>jsonb_plpythonu</literal>,
720-
<literal>jsonb_plpython2u</literal>, and
721-
<literal>jsonb_plpython3u</literal> (see <xref
722-
linkend="plpython-python23"/> for the PL/Python naming convention). If you
723-
use them, <type>jsonb</type> values are mapped to Python dictionaries,
724-
lists, and scalars, as appropriate.
719+
The extension for PL/Python is called <literal>jsonb_plpython3u</literal>.
720+
If you use it, <type>jsonb</type> values are mapped to Python
721+
dictionaries, lists, and scalars, as appropriate.
725722
</para>
726723

727724
<para>

‎doc/src/sgml/ltree.sgml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -826,19 +826,15 @@ ltreetest=&gt; SELECT ins_label(path,2,'Space') FROM test WHERE path &lt;@ 'Top.
826826
<title>Transforms</title>
827827

828828
<para>
829-
Additional extensions are available that implement transforms for
830-
the <type>ltree</type> type for PL/Python. The extensions are
831-
called <literal>ltree_plpythonu</literal>, <literal>ltree_plpython2u</literal>,
832-
and <literal>ltree_plpython3u</literal>
833-
(see <xref linkend="plpython-python23"/> for the PL/Python naming
834-
convention). If you install these transforms and specify them when
829+
The <literal>ltree_plpython3u</literal> extension implements transforms for
830+
the <type>ltree</type> type for PL/Python. If installed and specified when
835831
creating a function, <type>ltree</type> values are mapped to Python lists.
836832
(The reverse is currently not supported, however.)
837833
</para>
838834

839835
<caution>
840836
<para>
841-
It is strongly recommended that the transformextensions be installed in
837+
It is strongly recommended that the transformextension be installed in
842838
the same schema as <filename>ltree</filename>. Otherwise there are
843839
installation-time security hazards if a transform extension's schema
844840
contains objects defined by a hostile user.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp