mirror of
https://github.com/postgres/postgres.git
synced 2026-02-03 20:40:14 -05:00
1) pltcl: Add SPI_freetuptable() calls to avoid memory leaks (Me + Neil Conway) Change sprintf()s to snprintf()s (Neil Conway) Remove header files included elsewhere (Neil Conway) 2)plpython: Add SPI_freetuptable() calls to avoid memory leaks Cosemtic change to remove a compiler warning Notes: I have tested pltcl.c for a) the original leak problem reported for the repeated call of spi_exec in a TCL fragment and b) the subsequent report resulting from the use of spi_exec -array in a TCL fragment. The plpython.c patch is exactly the same as that applied to make revision 1.23, the plpython_schema.sql and feature.expected sections of the patch are also the same as last submited, applied and subsequently reversed out. It remains untested by me (other than via make check). However, this should be safe provided PyString_FromString() _copies_ the given string to make a PyObject. Nigel J. Andrews |
||
|---|---|---|
| .. | ||
| error.expected | ||
| feature.expected | ||
| Makefile | ||
| plpython.c | ||
| plpython.h | ||
| plpython_depopulate.sql | ||
| plpython_deschema.sql | ||
| plpython_drop.sql | ||
| plpython_error.sql | ||
| plpython_function.sql | ||
| plpython_populate.sql | ||
| plpython_schema.sql | ||
| plpython_setof.sql | ||
| plpython_test.sql | ||
| README | ||
| test.sh | ||
| TODO | ||
PL/Python - Python Procedural Language for PostgreSQL ----------------------------------------------------- $Id: README,v 1.2 2001/05/14 22:06:50 petere Exp $ Installation: configure --with-python cd src/pl/plpython gmake gmake install Test: # have postmaster running... gmake installcheck Enable language: createlang plpython dbname Note that PL/Python is currently not built automatically because the code is new and there are some portability issues. 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. To create a shared libpython, see this web page for hints: http://www.python.org/cgi-bin/faqw.py?req=show&file=faq03.030.htp Place the resulting library in the same directory as the existing static libpythonX.Y.a and relink plpython. Further documentation is available in the PostgreSQL Programmer's Guide.