Re: Add on_perl_init and proper destruction to plperl UPDATED [PATCH]

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Add on_perl_init and proper destruction to plperl UPDATED [PATCH]
Дата
Msg-id 4B625DCF.7080906@dunslane.net
обсуждение исходный текст
Ответ на Add on_perl_init and proper destruction to plperl UPDATED [PATCH]  (Tim Bunce <Tim.Bunce@pobox.com>)
Ответы Re: Add on_perl_init and proper destruction to plperl UPDATED [PATCH]  (Tim Bunce <Tim.Bunce@pobox.com>)
Список pgsql-hackers

Tim Bunce wrote:
> This is an updated version of the third of the patches to be split out
> from the former 'plperl feature patch 1'.
>
> It includes changes following discussions with Tom Lane and others.
>
> Changes in this patch:
>
> - Added plperl.on_perl_init GUC for DBA use (PGC_SIGHUP)
>     SPI functions are not available when the code is run.
>
> - Added interpreter destruction behaviour
>     Hooked via on_proc_exit().
>     Only has any effect for normal shutdown.
>     END blocks, if any, are run then objects are
>     destroyed, calling their DESTROY methods, if any.
>     SPI functions will die if called at this time.
>   

This patch is giving me a build error on Windows:

dlltool --export-all  --output-def libplperldll.def plperl.o SPI.o Util.o
dllwrap  -o plperl.dll --dllname plperl.dll  --def libplperldll.def 
plperl.o SPI.o Util.o -L../../../src/backend -lpostgres 
-LC:/Perl/lib/CORE -L../../../src/port -L/c/tcl/lib -lperl58
plperl.o(.text+0x33b): In function `plperl_destroy_interp':
C:/msys/1.0/home/pgrunner/bf/root/HEAD/pgsql.plperlnew/src/pl/plperl/plperl.c:639: 
undefined reference to `Perl_sv_clean_objs'
collect2: ld returned 1 exit status
c:\mingw\bin\dllwrap.exe: c:\mingw\bin\gcc exited with status 1

cheers

andrew





В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Pathological regexp match
Следующее
От: Scott Bailey
Дата:
Сообщение: Re: xpath improvement suggestion