Re: [HACKERS] Embedding scripting - Mailing list pgsql-hackers

From Brian E. Gallew
Subject Re: [HACKERS] Embedding scripting
Date
Msg-id 4335855615d0bc5dc19620671486596f
Whole thread Raw
In response to [HACKERS] Embedding scripting  (bibach@execpc.com)
List pgsql-hackers
>    Has anyone thought of making use of an embedded scripting package
> in PostgreSQL?  This would be something along the lines of TCL or
> Guile.

I'd prefer Python, but that's just me.

In any case, this has both good and bad points, and can actually be
circumvented.  We already have facilities for adding random extensions to the
database (e.g. CREATE FUNCTION lang='C').  While I don't know much about Guile,
both Tk/Tcl and Python can be embedded almost trivially on systems which
support dynamic loading.  Of course, for more functionality, you'd need to to
also link in libpgtcl (for Tcl) and/or Pygress.  This basically just moves
things from the front end to the back end.  Of course, there will probably be
namespace issues and so forth, but it's fairly easy (compared with, say,
Vadim's work with indices).

BTW, since I'm already here, I'd like to thank Marc, Bruce, Vadim, et al for
the great work on this product.  I'd hire any of you to work for me (assuming I
was in such a position)!


=====================================================================
| Please do not shoot at the thermonuclear weapons! -- Deacon       |
=====================================================================
| Finger geek@andrew.cmu.edu for my public key.                     |
=====================================================================

------------------------------

pgsql-hackers by date:

Previous
From: Linus Tolke
Date:
Subject: Re: [HACKERS] Embedding scripting
Next
From: "Marc G. Fournier"
Date:
Subject: [HACKERS] Neat Software - Not *really* PostgreSQL related