Threaded python vs. plpython
От | Mike Meyer |
---|---|
Тема | Threaded python vs. plpython |
Дата | |
Msg-id | 15989.18444.184517.882610@guru.mired.org обсуждение исходный текст |
Список | pgsql-interfaces |
In trying to build plpython on FreeBSD, I ran into a nasty gotcha. If I build a dynamic library from the static library built by the port, the createlang fails because the resulting .so file is looking for the posix threads library code. On FreeBSD, this is in libc_r, and a compiler flag causes the compiler to link against that instead of libc. The obvious solution is to build python without threads, but that's not acceptable, as I use them fairly regularly. Building a custom python config just to create a shared library for plpython works, but then I can't load the modules that are binary code. Given that plpython has a short list of modules that can be imported, this can be made to work, but is really ugly. I was hoping someone had a better solution. Or maybe had built PostGreSQL with the -pthread flag on FreeBSD, and knew how that worked. Thanks,<mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
В списке pgsql-interfaces по дате отправления: