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

Python as a procedural language

From: andrew(at)corvus(dot)biomed(dot)brown(dot)edu (Andrew Bosma)
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Python as a procedural language
Date: 2001-04-05 01:15:34
Message-ID: 20010404211534.A13150@corvus.biomed.brown.edu (view raw or flat)
Thread:
Lists: pgsql-interfaces
Hi

I've coded up a module that implements python as a procedural language
for postgresql.  A tarball can be downloaded at

http://users.ids.net/~bosma

If anyone is interested, take a look at it.  Comments and suggestions
would be appreciated.  Functions and triggers work. The SPI interface
can run execute queries and saved plans.  I'm sure there's a bug or
three still lurking in there.  Installation instructions are in the
tarball.  The only complication is that for python to load its dynamic
modules without unresolved symbols, the flags passed to dlopen need to
be modified.  This means you will have to rebuild postgres.  Is there
any reason why the default dlopen is called without the RTLD_GLOBAL
flag?  (Actually you can build without modifying postgres, but that
requires explicitly linking python loadable modules to the language
module.)

Thanks
Andrew Bosma

-- 




Responses

pgsql-interfaces by date

Next:From: Jeff DuffyDate: 2001-04-08 12:00:11
Subject: Status of DBD:Pg and Pg interfaces for Perl
Previous:From: liamDate: 2001-04-04 23:18:10
Subject: Re[2]: Macintosh OS 9.1 front end C interface

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