postgresql/src/pl/plpython/README

40 lines
1,004 B
Text
Raw Normal View History

PL/Python - Python Procedural Language for PostgreSQL
-----------------------------------------------------
$Id: README,v 1.2 2001/05/14 22:06:50 petere Exp $
2001-05-09 15:54:38 -04:00
Installation:
2001-05-09 15:54:38 -04:00
configure --with-python
cd src/pl/plpython
gmake
gmake install
2001-05-09 15:54:38 -04:00
Test:
2001-05-09 15:54:38 -04:00
# have postmaster running...
gmake installcheck
2001-05-09 15:54:38 -04:00
Enable language:
2001-05-09 15:54:38 -04:00
createlang plpython dbname
2001-05-09 15:54:38 -04:00
Note that PL/Python is currently not built automatically because the
code is new and there are some portability issues.
2001-05-09 15:54:38 -04:00
A default Python installation does not provide a shared libpython
library. This is not a problem on many platforms (although it makes
things less efficient), but on some platforms (especially HP-UX) the
link will fail outright.
2001-05-09 15:54:38 -04:00
To create a shared libpython, see this web page for hints:
2001-05-09 15:54:38 -04:00
http://www.python.org/cgi-bin/faqw.py?req=show&file=faq03.030.htp
2001-05-09 15:54:38 -04:00
Place the resulting library in the same directory as the existing
static libpythonX.Y.a and relink plpython.
2001-05-09 15:54:38 -04:00
Further documentation is available in the PostgreSQL Programmer's
Guide.