diff options
author | Peter Eisentraut | 2015-04-26 14:33:14 +0000 |
---|---|---|
committer | Peter Eisentraut | 2015-04-26 14:33:14 +0000 |
commit | cac76582053ef8ea07df65fed0757f352da23705 (patch) | |
tree | 6ae01041aa61db9d686638b9d4c3ccd30d7c6487 /doc/src/sgml/hstore.sgml | |
parent | f320cbb615e0374b18836337713239da58705cf3 (diff) |
Add transforms feature
This provides a mechanism for specifying conversions between SQL data
types and procedural languages. As examples, there are transforms
for hstore and ltree for PL/Perl and PL/Python.
reviews by Pavel Stěhule and Andres Freund
Diffstat (limited to 'doc/src/sgml/hstore.sgml')
-rw-r--r-- | doc/src/sgml/hstore.sgml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/src/sgml/hstore.sgml b/doc/src/sgml/hstore.sgml index fbe9543dfea..94f01f8dfe7 100644 --- a/doc/src/sgml/hstore.sgml +++ b/doc/src/sgml/hstore.sgml @@ -597,6 +597,25 @@ ALTER TABLE tablename ALTER hstorecol TYPE hstore USING hstorecol || ''; </sect2> <sect2> + <title>Transforms</title> + + <para> + Additional extensions are available that implement transforms for + the <type>hstore</type> type for the languages PL/Perl and PL/Python. The + extensions for PL/Perl are called <literal>hstore_plperl</literal> + and <literal>hstore_plperlu</literal>, for trusted and untrusted PL/Perl. + If you install these transforms and specify them when creating a + function, <type>hstore</type> values are mapped to Perl hashes. The + extensions for PL/Python are + called <literal>hstore_plpythonu</literal>, <literal>hstore_plpython2u</literal>, + and <literal>hstore_plpython3u</literal> + (see <xref linkend="plpython-python23"> for the PL/Python naming + convention). If you use them, <type>hstore</type> values are mapped to + Python dictionaries. + </para> + </sect2> + + <sect2> <title>Authors</title> <para> |