  Pl/Python and Cursors in Pl/Pgsql for PostgreSQL  By Mark
Nielsen    1. Purpose   2. Compiling PostgreSQL   3. Executing
Pl/Python and Pl/PgSQL with Cursors   4. Suggestions for Future
5. Conclusion   6. References   The purpose of this article is
to get people more familiar with some new programming techniques
with procedural languages in PostgreSQL 7.2. I am really a big
fan of procedural languages, and overall, PostgreSQL rocks when
it comes to stored procedures. You can create many different
types of functions like : SQL, Pl/PgSQL, Pl/Perl, and Pl/Tcl.
Recently in 7.2, you also have Pl/Perlu and Pl/Python ---
unrestricted Perl and Python. The ability to use other
programming languages inside a database server makes life a lot
easier for a programmer (even if there is some inefficiency with
Perl and Python). For a few years, I was irritated by the fact
procedural languages couldn't return more than one item. That
has sort of been taken care of, but not perfectly. One of the
last areas to make my life t