diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 523d9846f4..434855267e 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -1,4 +1,4 @@ - + <![%standalone-include[<productname>PostgreSQL</>]]> @@ -1515,7 +1515,14 @@ su - postgres <listitem> <para> Full path to the Python interpreter. This will be used to - determine the dependencies for building PL/Python. + determine the dependencies for building PL/Python. Also, + whether Python 2 or 3 is specified here (or otherwise + implicitly chosen) determines which variant of the PL/Python + language becomes available. See + <![%standalone-include[the <application>PL/Python</> + documentation]]> + <![%standalone-ignore[<xref linkend="plpython-python23">]]> + for more information. </para> </listitem> </varlistentry> diff --git a/doc/src/sgml/plpython.sgml b/doc/src/sgml/plpython.sgml index 988234ce8a..62673724cf 100644 --- a/doc/src/sgml/plpython.sgml +++ b/doc/src/sgml/plpython.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/plpython.sgml,v 1.52 2010/08/05 18:36:33 petere Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/plpython.sgml,v 1.53 2010/09/08 20:35:51 petere Exp $ --> <chapter id="plpython"> <title>PL/Python - Python Procedural Language @@ -93,6 +93,17 @@ whether PL/Python for Python 2 or Python 3 or both are available. + + + The built variant depends on which Python version was found during + the installation or which version was explicitly set using + the PYTHON environment variable; + see . To make both variants of + PL/Python available in one installation, the source tree has to be + configured and built twice. + + + This results in the following usage and migration strategy: @@ -148,7 +159,7 @@ See also the - document What's + document What's New In Python 3.0 for more information about porting to Python 3.