Skip site navigation (1) Skip section navigation (2)

Re: plpython problem.

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Mike Meyer <mwm(at)mired(dot)org>
Cc: PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: plpython problem.
Date: 2003-03-22 01:58:10
Message-ID: 200303220158.h2M1wAc01901@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
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
> -- 
> Mike Meyer <mwm(at)mired(dot)org>		http://www.mired.org/consulting.html
> Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073


pgsql-interfaces by date

Next:From: Rob FowlerDate: 2003-03-22 02:24:05
Subject: Re: esql problem
Previous:From: Bruce MomjianDate: 2003-03-22 01:53:09
Subject: Re: [INTERFACES] Roadmap for FE/BE protocol redesign

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group