X-Original-To: pgsql-interfaces@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 75177476372 for ; Fri, 21 Mar 2003 20:58:18 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 6A950476362 for ; Fri, 21 Mar 2003 20:58:17 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id h2M1wAc01901; Fri, 21 Mar 2003 20:58:10 -0500 (EST) From: Bruce Momjian Message-Id: <200303220158.h2M1wAc01901@candle.pha.pa.us> Subject: Re: plpython problem. In-Reply-To: <15995.49662.474372.676331@guru.mired.org> To: Mike Meyer Date: Fri, 21 Mar 2003 20:58:10 -0500 (EST) Cc: PostgreSQL-interfaces X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, hits=-19.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES autolearn=ham version=2.50-cvs X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50-cvs (1.172-2003-02-14-exp) X-Archive-Number: 200303/128 X-Sequence-Number: 3877 Can someone comment on this? --------------------------------------------------------------------------- Mike Meyer wrote: > Hello, > > I'm sorry to bother you two directly, but my mail to pgsql-hackers > never got answered; possibly it's caught in a spam trap somewhere. > > As a python programmer who uses PostGreSQL (for which thanks), I'd > like to use plpython for my triggers. The problem is that it requires > a shared library of the unthreaded version of Python. Since I use the > threading version in applications where I embed python, this creates > the risk that the next time I build those modules, I'll be breaking my > existing code base. > > The reason the a library of the threaded build doesn't work is that > it's looking for the posix thread routines that are in libc_r on > FreeBSD. > > Working solutions seems to be building a version of postmaster with > thread support, or getting the plpython.so file to link in a static > library. > > I've done the latter, but the resulting plpython.so doesn't work. > > Any comments on whether or what might go wrong with the former - I > can't see any obvious problems - or how to get the latter working, or > even an alternative solution, would be greatly appreciated. > > Thanks, > -- > Mike Meyer http://www.mired.org/consulting.html > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073