postgresql/src/pl/plperl
Tom Lane 698d99221d Eliminate memory leaks in plperl's spi_prepare() function.
Careless use of TopMemoryContext for I/O function data meant that repeated
use of spi_prepare and spi_freeplan would leak memory at the session level,
as per report from Christian Schröder.  In addition, spi_prepare
leaked a lot of transient data within the current plperl function's SPI
Proc context, which would be a problem for repeated use of spi_prepare
within a single plperl function call; and it wasn't terribly careful
about releasing permanent allocations in event of an error, either.

In passing, clean up some copy-and-pasteos in query-lookup error messages.

Alex Hunsaker and Tom Lane
2013-03-01 21:34:40 -05:00
..
expected Make plperl safe against functions that are redefined while running. 2012-09-09 20:33:10 -04:00
po Translation updates 2013-02-03 23:53:08 -05:00
sql Make plperl safe against functions that are redefined while running. 2012-09-09 20:33:10 -04:00
.gitignore Some more gitignore cleanups: cover contrib and PL regression test outputs. 2010-09-22 17:23:00 -04:00
GNUmakefile Backpatch "Use the preferred version of xsubpp." 2011-11-28 07:45:48 -05:00
nls.mk Translation updates 2012-08-14 16:28:09 -04:00
plperl.c Eliminate memory leaks in plperl's spi_prepare() function. 2013-03-01 21:34:40 -05:00
plperl.h Allow building with perl 5.14. 2011-06-04 19:36:11 -04:00
plperl_opmask.pl Abandon the use of Perl's Safe.pm to enforce restrictions in plperl, as it is 2010-05-13 16:40:36 +00:00
ppport.h Sync perl's ppport.h on all branches back to 7.4 with recent update on HEAD, ensuring we can build older branches with modern Perl installations. 2010-04-03 17:53:55 +00:00
README More README src cleanups. 2008-03-21 13:23:29 +00:00
SPI.xs Fix a few places that were checking for the return value of palloc() to be 2006-03-19 22:22:56 +00:00
spi_internal.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00

$PostgreSQL: pgsql/src/pl/plperl/README,v 1.4 2008/03/21 13:23:29 momjian Exp $

PL/Perl allows you to write PostgreSQL functions and procedures in
Perl.  To include PL/Perl in the build use './configure --with-perl'.
To build from this directory use 'gmake all; gmake install'.  libperl
must have been built as a shared library, which is usually not the
case in standard installations.

Consult the PostgreSQL User's Guide and the INSTALL file in the
top-level directory of the source distribution for more information.